Skip to content

Commit 4ed5e39

Browse files
feat(api): api update
1 parent 522cf9b commit 4ed5e39

17 files changed

+361330
-8686
lines changed

.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%2Forb-5bb582f84f0b4cf7bef84833fefd48a5f2734dc25805da2028fd8a6f1198da07.yml
3-
openapi_spec_hash: ced0e30dc67faa2414df511819408f12
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-dafe9f726a47bdf7e506af8f10c6abcf4321dcc58106ce2b806a918778dfe2be.yml
3+
openapi_spec_hash: 8e9827f2e8818d011e6afb203adb825f
44
config_hash: 3279841440b02d4e8303c961d6983492

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

Lines changed: 144365 additions & 4043 deletions
Large diffs are not rendered by default.

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

Lines changed: 144365 additions & 4043 deletions
Large diffs are not rendered by default.

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ import kotlin.jvm.optionals.getOrNull
7878
* pass `invoice_settings` in the body of this request, Orb will also generate a one-off invoice for
7979
* the customer for the credits pre-purchase. Note that you _must_ provide the
8080
* `per_unit_cost_basis`, since the total charges on the invoice are calculated by multiplying the
81-
* cost basis with the number of credit units added.
81+
* cost basis with the number of credit units added. If you invoice or handle payment of credits
82+
* outside of Orb (i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
83+
* `true` to prevent duplicate invoicing effects.
8284
* * if `per_unit_cost_basis` is greater than zero, an invoice will be generated and
8385
* `invoice_settings` must be included
8486
* * if `invoice_settings` is passed, one of either `custom_due_date` or `net_terms` is required to

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ import kotlin.jvm.optionals.getOrNull
7878
* pass `invoice_settings` in the body of this request, Orb will also generate a one-off invoice for
7979
* the customer for the credits pre-purchase. Note that you _must_ provide the
8080
* `per_unit_cost_basis`, since the total charges on the invoice are calculated by multiplying the
81-
* cost basis with the number of credit units added.
81+
* cost basis with the number of credit units added. If you invoice or handle payment of credits
82+
* outside of Orb (i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
83+
* `true` to prevent duplicate invoicing effects.
8284
* * if `per_unit_cost_basis` is greater than zero, an invoice will be generated and
8385
* `invoice_settings` must be included
8486
* * if `invoice_settings` is passed, one of either `custom_due_date` or `net_terms` is required to

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

Lines changed: 70757 additions & 592 deletions
Large diffs are not rendered by default.

orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/credits/LedgerServiceAsync.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ interface LedgerServiceAsync {
183183
* you pass `invoice_settings` in the body of this request, Orb will also generate a one-off
184184
* invoice for the customer for the credits pre-purchase. Note that you _must_ provide the
185185
* `per_unit_cost_basis`, since the total charges on the invoice are calculated by multiplying
186-
* the cost basis with the number of credit units added.
186+
* the cost basis with the number of credit units added. If you invoice or handle payment of
187+
* credits outside of Orb (i.e. marketplace customers), set `mark_as_paid` in the
188+
* `invoice_settings` to `true` to prevent duplicate invoicing effects.
187189
* * if `per_unit_cost_basis` is greater than zero, an invoice will be generated and
188190
* `invoice_settings` must be included
189191
* * if `invoice_settings` is passed, one of either `custom_due_date` or `net_terms` is required
@@ -312,7 +314,9 @@ interface LedgerServiceAsync {
312314
* you pass `invoice_settings` in the body of this request, Orb will also generate a one-off
313315
* invoice for the customer for the credits pre-purchase. Note that you _must_ provide the
314316
* `per_unit_cost_basis`, since the total charges on the invoice are calculated by multiplying
315-
* the cost basis with the number of credit units added.
317+
* the cost basis with the number of credit units added. If you invoice or handle payment of
318+
* credits outside of Orb (i.e. marketplace customers), set `mark_as_paid` in the
319+
* `invoice_settings` to `true` to prevent duplicate invoicing effects.
316320
* * if `per_unit_cost_basis` is greater than zero, an invoice will be generated and
317321
* `invoice_settings` must be included
318322
* * if `invoice_settings` is passed, one of either `custom_due_date` or `net_terms` is required

orb-java-core/src/main/kotlin/com/withorb/api/services/blocking/customers/credits/LedgerService.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ interface LedgerService {
178178
* you pass `invoice_settings` in the body of this request, Orb will also generate a one-off
179179
* invoice for the customer for the credits pre-purchase. Note that you _must_ provide the
180180
* `per_unit_cost_basis`, since the total charges on the invoice are calculated by multiplying
181-
* the cost basis with the number of credit units added.
181+
* the cost basis with the number of credit units added. If you invoice or handle payment of
182+
* credits outside of Orb (i.e. marketplace customers), set `mark_as_paid` in the
183+
* `invoice_settings` to `true` to prevent duplicate invoicing effects.
182184
* * if `per_unit_cost_basis` is greater than zero, an invoice will be generated and
183185
* `invoice_settings` must be included
184186
* * if `invoice_settings` is passed, one of either `custom_due_date` or `net_terms` is required
@@ -306,7 +308,9 @@ interface LedgerService {
306308
* you pass `invoice_settings` in the body of this request, Orb will also generate a one-off
307309
* invoice for the customer for the credits pre-purchase. Note that you _must_ provide the
308310
* `per_unit_cost_basis`, since the total charges on the invoice are calculated by multiplying
309-
* the cost basis with the number of credit units added.
311+
* the cost basis with the number of credit units added. If you invoice or handle payment of
312+
* credits outside of Orb (i.e. marketplace customers), set `mark_as_paid` in the
313+
* `invoice_settings` to `true` to prevent duplicate invoicing effects.
310314
* * if `per_unit_cost_basis` is greater than zero, an invoice will be generated and
311315
* `invoice_settings` must be included
312316
* * if `invoice_settings` is passed, one of either `custom_due_date` or `net_terms` is required

0 commit comments

Comments
 (0)