Skip to content

Commit 1581833

Browse files
feat(api): api update
1 parent 8e6ac31 commit 1581833

34 files changed

+1859
-51
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-1ca41c4b1d872cf2a198c8cf5edeeeddac012259a7cf211b102bf137c05b8240.yml
3-
openapi_spec_hash: 955066d4865fc42440cd81e40f5f79cd
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-2b77f13a159cf689a3bba6ac5ff03b6c0df62b772e2da04aff52be86710ca4d4.yml
3+
openapi_spec_hash: 28a3f685403d98ddd68b427d92ed28fb
44
config_hash: c01c1191b1cd696c7ca855ff6d28a8df

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ import kotlin.jvm.optionals.getOrNull
1212
/**
1313
* This endpoint returns the credit block and its associated purchasing invoices.
1414
*
15-
* If a credit block was purchased (as opposed to being manually added or allocated from a
16-
* subscription), this endpoint returns the invoices that were created to charge the customer for
17-
* the credit block. For credit blocks with payment schedules spanning multiple periods (e.g.,
18-
* monthly payments over 12 months), multiple invoices will be returned.
15+
* If a credit block was purchased (as opposed to being manually added), this endpoint returns the
16+
* invoices that were created to charge the customer for the credit block. For credit blocks with
17+
* payment schedules spanning multiple periods (e.g., monthly payments over 12 months), multiple
18+
* invoices will be returned.
1919
*
20-
* If the credit block was not purchased (e.g., manual increment, allocation), an empty invoices
21-
* list is returned.
20+
* For credit blocks created by subscription allocation prices, this endpoint returns the
21+
* subscription invoice containing the allocation line item that created the block.
22+
*
23+
* If the credit block was not purchased (e.g., manual increment), an empty invoices list is
24+
* returned.
2225
*
2326
* **Note: This endpoint is currently experimental and its interface may change in future releases.
2427
* Please contact support before building production integrations against this endpoint.**

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

Lines changed: 1643 additions & 31 deletions
Large diffs are not rendered by default.

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,16 @@ interface CreditBlockServiceAsync {
117117
/**
118118
* This endpoint returns the credit block and its associated purchasing invoices.
119119
*
120-
* If a credit block was purchased (as opposed to being manually added or allocated from a
121-
* subscription), this endpoint returns the invoices that were created to charge the customer
122-
* for the credit block. For credit blocks with payment schedules spanning multiple periods
123-
* (e.g., monthly payments over 12 months), multiple invoices will be returned.
120+
* If a credit block was purchased (as opposed to being manually added), this endpoint returns
121+
* the invoices that were created to charge the customer for the credit block. For credit blocks
122+
* with payment schedules spanning multiple periods (e.g., monthly payments over 12 months),
123+
* multiple invoices will be returned.
124124
*
125-
* If the credit block was not purchased (e.g., manual increment, allocation), an empty invoices
126-
* list is returned.
125+
* For credit blocks created by subscription allocation prices, this endpoint returns the
126+
* subscription invoice containing the allocation line item that created the block.
127+
*
128+
* If the credit block was not purchased (e.g., manual increment), an empty invoices list is
129+
* returned.
127130
*
128131
* **Note: This endpoint is currently experimental and its interface may change in future
129132
* releases. Please contact support before building production integrations against this

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,16 @@ interface CreditBlockService {
107107
/**
108108
* This endpoint returns the credit block and its associated purchasing invoices.
109109
*
110-
* If a credit block was purchased (as opposed to being manually added or allocated from a
111-
* subscription), this endpoint returns the invoices that were created to charge the customer
112-
* for the credit block. For credit blocks with payment schedules spanning multiple periods
113-
* (e.g., monthly payments over 12 months), multiple invoices will be returned.
110+
* If a credit block was purchased (as opposed to being manually added), this endpoint returns
111+
* the invoices that were created to charge the customer for the credit block. For credit blocks
112+
* with payment schedules spanning multiple periods (e.g., monthly payments over 12 months),
113+
* multiple invoices will be returned.
114114
*
115-
* If the credit block was not purchased (e.g., manual increment, allocation), an empty invoices
116-
* list is returned.
115+
* For credit blocks created by subscription allocation prices, this endpoint returns the
116+
* subscription invoice containing the allocation line item that created the block.
117+
*
118+
* If the credit block was not purchased (e.g., manual increment), an empty invoices list is
119+
* returned.
117120
*
118121
* **Note: This endpoint is currently experimental and its interface may change in future
119122
* releases. Please contact support before building production integrations against this

orb-java-core/src/test/kotlin/com/withorb/api/models/AggregatedCostTest.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ internal class AggregatedCostTest {
8686
)
8787
.externalPriceId("external_price_id")
8888
.fixedPriceQuantity(0.0)
89+
.invoiceGroupingKey("invoice_grouping_key")
8990
.invoicingCycleConfiguration(
9091
BillingCycleConfiguration.builder()
9192
.duration(0L)
@@ -231,6 +232,7 @@ internal class AggregatedCostTest {
231232
)
232233
.externalPriceId("external_price_id")
233234
.fixedPriceQuantity(0.0)
235+
.invoiceGroupingKey("invoice_grouping_key")
234236
.invoicingCycleConfiguration(
235237
BillingCycleConfiguration.builder()
236238
.duration(0L)
@@ -386,6 +388,7 @@ internal class AggregatedCostTest {
386388
)
387389
.externalPriceId("external_price_id")
388390
.fixedPriceQuantity(0.0)
391+
.invoiceGroupingKey("invoice_grouping_key")
389392
.invoicingCycleConfiguration(
390393
BillingCycleConfiguration.builder()
391394
.duration(0L)

orb-java-core/src/test/kotlin/com/withorb/api/models/ChangedSubscriptionResourcesTest.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ internal class ChangedSubscriptionResourcesTest {
332332
)
333333
.externalPriceId("external_price_id")
334334
.fixedPriceQuantity(0.0)
335+
.invoiceGroupingKey("invoice_grouping_key")
335336
.invoicingCycleConfiguration(
336337
BillingCycleConfiguration.builder()
337338
.duration(0L)
@@ -816,6 +817,7 @@ internal class ChangedSubscriptionResourcesTest {
816817
)
817818
.externalPriceId("external_price_id")
818819
.fixedPriceQuantity(0.0)
820+
.invoiceGroupingKey("invoice_grouping_key")
819821
.invoicingCycleConfiguration(
820822
BillingCycleConfiguration.builder()
821823
.duration(0L)
@@ -1298,6 +1300,7 @@ internal class ChangedSubscriptionResourcesTest {
12981300
)
12991301
.externalPriceId("external_price_id")
13001302
.fixedPriceQuantity(0.0)
1303+
.invoiceGroupingKey("invoice_grouping_key")
13011304
.invoicingCycleConfiguration(
13021305
BillingCycleConfiguration.builder()
13031306
.duration(0L)
@@ -1763,6 +1766,7 @@ internal class ChangedSubscriptionResourcesTest {
17631766
)
17641767
.externalPriceId("external_price_id")
17651768
.fixedPriceQuantity(0.0)
1769+
.invoiceGroupingKey("invoice_grouping_key")
17661770
.invoicingCycleConfiguration(
17671771
BillingCycleConfiguration.builder()
17681772
.duration(0L)
@@ -2257,6 +2261,7 @@ internal class ChangedSubscriptionResourcesTest {
22572261
)
22582262
.externalPriceId("external_price_id")
22592263
.fixedPriceQuantity(0.0)
2264+
.invoiceGroupingKey("invoice_grouping_key")
22602265
.invoicingCycleConfiguration(
22612266
BillingCycleConfiguration.builder()
22622267
.duration(0L)
@@ -2741,6 +2746,7 @@ internal class ChangedSubscriptionResourcesTest {
27412746
)
27422747
.externalPriceId("external_price_id")
27432748
.fixedPriceQuantity(0.0)
2749+
.invoiceGroupingKey("invoice_grouping_key")
27442750
.invoicingCycleConfiguration(
27452751
BillingCycleConfiguration.builder()
27462752
.duration(0L)

orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListByExternalIdResponseTest.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ internal class CustomerCostListByExternalIdResponseTest {
105105
)
106106
.externalPriceId("external_price_id")
107107
.fixedPriceQuantity(0.0)
108+
.invoiceGroupingKey("invoice_grouping_key")
108109
.invoicingCycleConfiguration(
109110
BillingCycleConfiguration.builder()
110111
.duration(0L)
@@ -272,6 +273,7 @@ internal class CustomerCostListByExternalIdResponseTest {
272273
)
273274
.externalPriceId("external_price_id")
274275
.fixedPriceQuantity(0.0)
276+
.invoiceGroupingKey("invoice_grouping_key")
275277
.invoicingCycleConfiguration(
276278
BillingCycleConfiguration.builder()
277279
.duration(0L)
@@ -448,6 +450,7 @@ internal class CustomerCostListByExternalIdResponseTest {
448450
)
449451
.externalPriceId("external_price_id")
450452
.fixedPriceQuantity(0.0)
453+
.invoiceGroupingKey("invoice_grouping_key")
451454
.invoicingCycleConfiguration(
452455
BillingCycleConfiguration.builder()
453456
.duration(0L)

orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListResponseTest.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ internal class CustomerCostListResponseTest {
105105
)
106106
.externalPriceId("external_price_id")
107107
.fixedPriceQuantity(0.0)
108+
.invoiceGroupingKey("invoice_grouping_key")
108109
.invoicingCycleConfiguration(
109110
BillingCycleConfiguration.builder()
110111
.duration(0L)
@@ -272,6 +273,7 @@ internal class CustomerCostListResponseTest {
272273
)
273274
.externalPriceId("external_price_id")
274275
.fixedPriceQuantity(0.0)
276+
.invoiceGroupingKey("invoice_grouping_key")
275277
.invoicingCycleConfiguration(
276278
BillingCycleConfiguration.builder()
277279
.duration(0L)
@@ -448,6 +450,7 @@ internal class CustomerCostListResponseTest {
448450
)
449451
.externalPriceId("external_price_id")
450452
.fixedPriceQuantity(0.0)
453+
.invoiceGroupingKey("invoice_grouping_key")
451454
.invoicingCycleConfiguration(
452455
BillingCycleConfiguration.builder()
453456
.duration(0L)

orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdResponseTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ internal class CustomerCreditLedgerCreateEntryByExternalIdResponseTest {
273273
)
274274
.externalPriceId("external_price_id")
275275
.fixedPriceQuantity(0.0)
276+
.invoiceGroupingKey("invoice_grouping_key")
276277
.invoicingCycleConfiguration(
277278
BillingCycleConfiguration.builder()
278279
.duration(0L)
@@ -728,6 +729,7 @@ internal class CustomerCreditLedgerCreateEntryByExternalIdResponseTest {
728729
)
729730
.externalPriceId("external_price_id")
730731
.fixedPriceQuantity(0.0)
732+
.invoiceGroupingKey("invoice_grouping_key")
731733
.invoicingCycleConfiguration(
732734
BillingCycleConfiguration.builder()
733735
.duration(0L)

0 commit comments

Comments
 (0)