recurly-client-java icon indicating copy to clipboard operation
recurly-client-java copied to clipboard

QueryParams Class does not support all possible values for Type and State

Open garrgree opened this issue 7 months ago • 0 comments

Warning: Github issues are not an official support channel for Recurly. If you have an urgent request we suggest you contact us through an official channel: [email protected] or https://recurly.zendesk.com

Describe the bug

Within the com.recurly.v3.QueryParams class the setType and setState methods has limited support for all possible types and states.

  1. The setType() method only accepts Constants.FilterInvoiceType but we should be able to set FilterTransactionType too(FilterInvoiceType only supports "charge", "credit", "legacy", "non-legacy" but we expect to be able to pass any of "authorization" "capture" "payment" "purchase" "refund" "verify" as well e.g. in the Client.listAccountTransactions(String accountId, QueryParams queryParams) method )

  2. The setState() method only accepts Constants.ActiveState but we shuold be able to set FilterSubscriptionState(and possibly other states but ActiveState only supports "active" or "inactive" and various endpoints in the API accept "canceled" "expired" "future" "in_trial" "live", etc) e.g in the listAccountSubscriptions(String accountId, QueryParams queryParams) metod)

Your Environment

  • 5.0.0
  • Java 17

garrgree avatar Jun 04 '25 22:06 garrgree