QueryParams Class does not support all possible values for Type and State
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.
-
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 )
-
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