Skip to content

Commit 3234916

Browse files
feat(api): api update
1 parent a9e8d7c commit 3234916

4 files changed

Lines changed: 14 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 139
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb/orb-45297c0f1067cd444a30371110c69f876accf55f303a3dce9a4f74863b59f18f.yml
3-
openapi_spec_hash: cd2f638b98c6e89342397fef860166b7
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb/orb-aa92e5bbd456e6bc527223462c075f4315b7edfde23aae99cb6aa8272b3deae1.yml
3+
openapi_spec_hash: b234ee2f5a52bacac12c5ed59a56f542
44
config_hash: c01c1191b1cd696c7ca855ff6d28a8df

orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListParams.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ import kotlin.jvm.optionals.getOrNull
2525
* Subscriptions can be filtered for a specific customer by using either the customer_id or
2626
* external_customer_id query parameters. To filter subscriptions for multiple customers, use the
2727
* customer_id[] or external_customer_id[] query parameters.
28+
*
29+
* Subscriptions can be filtered by status using the status query parameter (one of `active`,
30+
* `ended`, or `upcoming`). To filter for multiple statuses in a single request, use the status[]
31+
* query parameter, e.g. `status[]=active&status[]=ended`.
2832
*/
2933
class SubscriptionListParams
3034
private constructor(

orb-java-core/src/main/kotlin/com/withorb/api/services/async/SubscriptionServiceAsync.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,10 @@ interface SubscriptionServiceAsync {
348348
* Subscriptions can be filtered for a specific customer by using either the customer_id or
349349
* external_customer_id query parameters. To filter subscriptions for multiple customers, use
350350
* the customer_id[] or external_customer_id[] query parameters.
351+
*
352+
* Subscriptions can be filtered by status using the status query parameter (one of `active`,
353+
* `ended`, or `upcoming`). To filter for multiple statuses in a single request, use the
354+
* status[] query parameter, e.g. `status[]=active&status[]=ended`.
351355
*/
352356
fun list(): CompletableFuture<SubscriptionListPageAsync> = list(SubscriptionListParams.none())
353357

orb-java-core/src/main/kotlin/com/withorb/api/services/blocking/SubscriptionService.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ interface SubscriptionService {
345345
* Subscriptions can be filtered for a specific customer by using either the customer_id or
346346
* external_customer_id query parameters. To filter subscriptions for multiple customers, use
347347
* the customer_id[] or external_customer_id[] query parameters.
348+
*
349+
* Subscriptions can be filtered by status using the status query parameter (one of `active`,
350+
* `ended`, or `upcoming`). To filter for multiple statuses in a single request, use the
351+
* status[] query parameter, e.g. `status[]=active&status[]=ended`.
348352
*/
349353
fun list(): SubscriptionListPage = list(SubscriptionListParams.none())
350354

0 commit comments

Comments
 (0)