Skip to content

Commit 8e8574c

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#59)
1 parent c38d281 commit 8e8574c

File tree

7 files changed

+53
-13
lines changed

7 files changed

+53
-13
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 93
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-5b28e83c3230be7d858ce20741c7b5debdad3e7720e2fa6e3a2d1774ca02a337.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c41cb3efa0bdffe6bae3146ed10c044b7905560bb24f0bd34166c34bd26cbfbf.yml

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ private constructor(
161161

162162
fun customer(): Customer = customer.getRequired("customer")
163163

164+
/**
165+
* This field is deprecated in favor of `discounts`. If a `discounts` list is provided, the
166+
* first discount in the list will be returned. If the list is empty, `None` will be returned.
167+
*/
164168
fun discount(): Optional<Discount> = Optional.ofNullable(discount.getNullable("discount"))
165169

166170
fun discounts(): List<Discount> = discounts.getRequired("discounts")
@@ -417,6 +421,10 @@ private constructor(
417421

418422
@JsonProperty("customer") @ExcludeMissing fun _customer() = customer
419423

424+
/**
425+
* This field is deprecated in favor of `discounts`. If a `discounts` list is provided, the
426+
* first discount in the list will be returned. If the list is empty, `None` will be returned.
427+
*/
420428
@JsonProperty("discount") @ExcludeMissing fun _discount() = discount
421429

422430
@JsonProperty("discounts") @ExcludeMissing fun _discounts() = discounts
@@ -1036,8 +1044,18 @@ private constructor(
10361044
@ExcludeMissing
10371045
fun customer(customer: JsonField<Customer>) = apply { this.customer = customer }
10381046

1047+
/**
1048+
* This field is deprecated in favor of `discounts`. If a `discounts` list is provided, the
1049+
* first discount in the list will be returned. If the list is empty, `None` will be
1050+
* returned.
1051+
*/
10391052
fun discount(discount: Discount) = discount(JsonField.of(discount))
10401053

1054+
/**
1055+
* This field is deprecated in favor of `discounts`. If a `discounts` list is provided, the
1056+
* first discount in the list will be returned. If the list is empty, `None` will be
1057+
* returned.
1058+
*/
10411059
@JsonProperty("discount")
10421060
@ExcludeMissing
10431061
fun discount(discount: JsonField<Discount>) = apply { this.discount = discount }

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ private constructor(
154154

155155
fun customer(): Customer = customer.getRequired("customer")
156156

157+
/**
158+
* This field is deprecated in favor of `discounts`. If a `discounts` list is provided, the
159+
* first discount in the list will be returned. If the list is empty, `None` will be returned.
160+
*/
157161
fun discount(): Optional<Discount> = Optional.ofNullable(discount.getNullable("discount"))
158162

159163
fun discounts(): List<Discount> = discounts.getRequired("discounts")
@@ -410,6 +414,10 @@ private constructor(
410414

411415
@JsonProperty("customer") @ExcludeMissing fun _customer() = customer
412416

417+
/**
418+
* This field is deprecated in favor of `discounts`. If a `discounts` list is provided, the
419+
* first discount in the list will be returned. If the list is empty, `None` will be returned.
420+
*/
413421
@JsonProperty("discount") @ExcludeMissing fun _discount() = discount
414422

415423
@JsonProperty("discounts") @ExcludeMissing fun _discounts() = discounts
@@ -1030,8 +1038,18 @@ private constructor(
10301038
@ExcludeMissing
10311039
fun customer(customer: JsonField<Customer>) = apply { this.customer = customer }
10321040

1041+
/**
1042+
* This field is deprecated in favor of `discounts`. If a `discounts` list is provided, the
1043+
* first discount in the list will be returned. If the list is empty, `None` will be
1044+
* returned.
1045+
*/
10331046
fun discount(discount: Discount) = discount(JsonField.of(discount))
10341047

1048+
/**
1049+
* This field is deprecated in favor of `discounts`. If a `discounts` list is provided, the
1050+
* first discount in the list will be returned. If the list is empty, `None` will be
1051+
* returned.
1052+
*/
10351053
@JsonProperty("discount")
10361054
@ExcludeMissing
10371055
fun discount(discount: JsonField<Discount>) = apply { this.discount = discount }

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ interface CustomerServiceAsync {
7272
): CompletableFuture<CustomerListPageAsync>
7373

7474
/**
75-
* This performs a deletion of this customer, its subscriptions, and its invoices. This
76-
* operation is irreversible. Note that this is a _soft_ deletion, but the data will be
77-
* inaccessible through the API and Orb dashboard. For hard-deletion, please reach out to the
75+
* This performs a deletion of this customer, its subscriptions, and its invoices, provided the
76+
* customer does not have any issued invoices. Customers with issued invoices cannot be deleted.
77+
* This operation is irreversible. Note that this is a _soft_ deletion, but the data will be
78+
* inaccessible through the API and Orb dashboard. For a hard-deletion, please reach out to the
7879
* Orb team directly.
7980
*
8081
* **Note**: This operation happens asynchronously and can be expected to take a few minutes to

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,10 @@ constructor(
168168
private val deleteHandler: Handler<Void?> = emptyHandler().withErrorHandler(errorHandler)
169169

170170
/**
171-
* This performs a deletion of this customer, its subscriptions, and its invoices. This
172-
* operation is irreversible. Note that this is a _soft_ deletion, but the data will be
173-
* inaccessible through the API and Orb dashboard. For hard-deletion, please reach out to the
171+
* This performs a deletion of this customer, its subscriptions, and its invoices, provided the
172+
* customer does not have any issued invoices. Customers with issued invoices cannot be deleted.
173+
* This operation is irreversible. Note that this is a _soft_ deletion, but the data will be
174+
* inaccessible through the API and Orb dashboard. For a hard-deletion, please reach out to the
174175
* Orb team directly.
175176
*
176177
* **Note**: This operation happens asynchronously and can be expected to take a few minutes to

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ interface CustomerService {
7171
): CustomerListPage
7272

7373
/**
74-
* This performs a deletion of this customer, its subscriptions, and its invoices. This
75-
* operation is irreversible. Note that this is a _soft_ deletion, but the data will be
76-
* inaccessible through the API and Orb dashboard. For hard-deletion, please reach out to the
74+
* This performs a deletion of this customer, its subscriptions, and its invoices, provided the
75+
* customer does not have any issued invoices. Customers with issued invoices cannot be deleted.
76+
* This operation is irreversible. Note that this is a _soft_ deletion, but the data will be
77+
* inaccessible through the API and Orb dashboard. For a hard-deletion, please reach out to the
7778
* Orb team directly.
7879
*
7980
* **Note**: This operation happens asynchronously and can be expected to take a few minutes to

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,10 @@ constructor(
158158
private val deleteHandler: Handler<Void?> = emptyHandler().withErrorHandler(errorHandler)
159159

160160
/**
161-
* This performs a deletion of this customer, its subscriptions, and its invoices. This
162-
* operation is irreversible. Note that this is a _soft_ deletion, but the data will be
163-
* inaccessible through the API and Orb dashboard. For hard-deletion, please reach out to the
161+
* This performs a deletion of this customer, its subscriptions, and its invoices, provided the
162+
* customer does not have any issued invoices. Customers with issued invoices cannot be deleted.
163+
* This operation is irreversible. Note that this is a _soft_ deletion, but the data will be
164+
* inaccessible through the API and Orb dashboard. For a hard-deletion, please reach out to the
164165
* Orb team directly.
165166
*
166167
* **Note**: This operation happens asynchronously and can be expected to take a few minutes to

0 commit comments

Comments
 (0)