Skip to content

Commit 6aea587

Browse files
feat(api): api update (#331)
1 parent 9401e34 commit 6aea587

File tree

7 files changed

+61
-31
lines changed

7 files changed

+61
-31
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: 103
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6797b438a8e6a6856e28f4304a5a3c81bb67e74fa2d6fcc20e734880c725295a.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-04f02fa57c3ab8d15ecf0a16a41a83814c21cdc2a830fae4d65f1b7b2196d819.yml

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

Lines changed: 45 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49642,13 +49642,17 @@ private constructor(
4964249642

4964349643
/**
4964449644
* The start date of the adjustment interval. This is the date that the adjustment will
49645-
* start affecting prices on the subscription.
49645+
* start affecting prices on the subscription. The adjustment will apply to invoice dates
49646+
* that overlap with this `start_date`. This `start_date` is treated as inclusive for
49647+
* in-advance prices, and exclusive for in-arrears prices.
4964649648
*/
4964749649
fun startDate(): StartDate = startDate.getRequired("start_date")
4964849650

4964949651
/**
4965049652
* The end date of the adjustment interval. This is the date that the adjustment will stop
49651-
* affecting prices on the subscription.
49653+
* affecting prices on the subscription. The adjustment will apply to invoice dates that
49654+
* overlap with this `end_date`.This `end_date` is treated as exclusive for in-advance
49655+
* prices, and inclusive for in-arrears prices.
4965249656
*/
4965349657
fun endDate(): Optional<EndDate> = Optional.ofNullable(endDate.getNullable("end_date"))
4965449658

@@ -49659,15 +49663,19 @@ private constructor(
4965949663

4966049664
/**
4966149665
* The start date of the adjustment interval. This is the date that the adjustment will
49662-
* start affecting prices on the subscription.
49666+
* start affecting prices on the subscription. The adjustment will apply to invoice dates
49667+
* that overlap with this `start_date`. This `start_date` is treated as inclusive for
49668+
* in-advance prices, and exclusive for in-arrears prices.
4966349669
*/
4966449670
@JsonProperty("start_date")
4966549671
@ExcludeMissing
4966649672
fun _startDate(): JsonField<StartDate> = startDate
4966749673

4966849674
/**
4966949675
* The end date of the adjustment interval. This is the date that the adjustment will stop
49670-
* affecting prices on the subscription.
49676+
* affecting prices on the subscription. The adjustment will apply to invoice dates that
49677+
* overlap with this `end_date`.This `end_date` is treated as exclusive for in-advance
49678+
* prices, and inclusive for in-arrears prices.
4967149679
*/
4967249680
@JsonProperty("end_date") @ExcludeMissing fun _endDate(): JsonField<EndDate> = endDate
4967349681

@@ -49750,56 +49758,74 @@ private constructor(
4975049758

4975149759
/**
4975249760
* The start date of the adjustment interval. This is the date that the adjustment will
49753-
* start affecting prices on the subscription.
49761+
* start affecting prices on the subscription. The adjustment will apply to invoice
49762+
* dates that overlap with this `start_date`. This `start_date` is treated as inclusive
49763+
* for in-advance prices, and exclusive for in-arrears prices.
4975449764
*/
4975549765
fun startDate(startDate: StartDate) = startDate(JsonField.of(startDate))
4975649766

4975749767
/**
4975849768
* The start date of the adjustment interval. This is the date that the adjustment will
49759-
* start affecting prices on the subscription.
49769+
* start affecting prices on the subscription. The adjustment will apply to invoice
49770+
* dates that overlap with this `start_date`. This `start_date` is treated as inclusive
49771+
* for in-advance prices, and exclusive for in-arrears prices.
4976049772
*/
4976149773
fun startDate(startDate: JsonField<StartDate>) = apply { this.startDate = startDate }
4976249774

4976349775
/**
4976449776
* The start date of the adjustment interval. This is the date that the adjustment will
49765-
* start affecting prices on the subscription.
49777+
* start affecting prices on the subscription. The adjustment will apply to invoice
49778+
* dates that overlap with this `start_date`. This `start_date` is treated as inclusive
49779+
* for in-advance prices, and exclusive for in-arrears prices.
4976649780
*/
4976749781
fun startDate(dateTime: OffsetDateTime) = startDate(StartDate.ofDateTime(dateTime))
4976849782

4976949783
/**
4977049784
* The start date of the adjustment interval. This is the date that the adjustment will
49771-
* start affecting prices on the subscription.
49785+
* start affecting prices on the subscription. The adjustment will apply to invoice
49786+
* dates that overlap with this `start_date`. This `start_date` is treated as inclusive
49787+
* for in-advance prices, and exclusive for in-arrears prices.
4977249788
*/
4977349789
fun startDate(billingCycleRelative: BillingCycleRelativeDate) =
4977449790
startDate(StartDate.ofBillingCycleRelative(billingCycleRelative))
4977549791

4977649792
/**
4977749793
* The end date of the adjustment interval. This is the date that the adjustment will
49778-
* stop affecting prices on the subscription.
49794+
* stop affecting prices on the subscription. The adjustment will apply to invoice dates
49795+
* that overlap with this `end_date`.This `end_date` is treated as exclusive for
49796+
* in-advance prices, and inclusive for in-arrears prices.
4977949797
*/
4978049798
fun endDate(endDate: EndDate?) = endDate(JsonField.ofNullable(endDate))
4978149799

4978249800
/**
4978349801
* The end date of the adjustment interval. This is the date that the adjustment will
49784-
* stop affecting prices on the subscription.
49802+
* stop affecting prices on the subscription. The adjustment will apply to invoice dates
49803+
* that overlap with this `end_date`.This `end_date` is treated as exclusive for
49804+
* in-advance prices, and inclusive for in-arrears prices.
4978549805
*/
4978649806
fun endDate(endDate: Optional<EndDate>) = endDate(endDate.getOrNull())
4978749807

4978849808
/**
4978949809
* The end date of the adjustment interval. This is the date that the adjustment will
49790-
* stop affecting prices on the subscription.
49810+
* stop affecting prices on the subscription. The adjustment will apply to invoice dates
49811+
* that overlap with this `end_date`.This `end_date` is treated as exclusive for
49812+
* in-advance prices, and inclusive for in-arrears prices.
4979149813
*/
4979249814
fun endDate(endDate: JsonField<EndDate>) = apply { this.endDate = endDate }
4979349815

4979449816
/**
4979549817
* The end date of the adjustment interval. This is the date that the adjustment will
49796-
* stop affecting prices on the subscription.
49818+
* stop affecting prices on the subscription. The adjustment will apply to invoice dates
49819+
* that overlap with this `end_date`.This `end_date` is treated as exclusive for
49820+
* in-advance prices, and inclusive for in-arrears prices.
4979749821
*/
4979849822
fun endDate(dateTime: OffsetDateTime) = endDate(EndDate.ofDateTime(dateTime))
4979949823

4980049824
/**
4980149825
* The end date of the adjustment interval. This is the date that the adjustment will
49802-
* stop affecting prices on the subscription.
49826+
* stop affecting prices on the subscription. The adjustment will apply to invoice dates
49827+
* that overlap with this `end_date`.This `end_date` is treated as exclusive for
49828+
* in-advance prices, and inclusive for in-arrears prices.
4980349829
*/
4980449830
fun endDate(billingCycleRelative: BillingCycleRelativeDate) =
4980549831
endDate(EndDate.ofBillingCycleRelative(billingCycleRelative))
@@ -51651,7 +51677,9 @@ private constructor(
5165151677

5165251678
/**
5165351679
* The start date of the adjustment interval. This is the date that the adjustment will
51654-
* start affecting prices on the subscription.
51680+
* start affecting prices on the subscription. The adjustment will apply to invoice dates
51681+
* that overlap with this `start_date`. This `start_date` is treated as inclusive for
51682+
* in-advance prices, and exclusive for in-arrears prices.
5165551683
*/
5165651684
@JsonDeserialize(using = StartDate.Deserializer::class)
5165751685
@JsonSerialize(using = StartDate.Serializer::class)
@@ -51795,7 +51823,9 @@ private constructor(
5179551823

5179651824
/**
5179751825
* The end date of the adjustment interval. This is the date that the adjustment will stop
51798-
* affecting prices on the subscription.
51826+
* affecting prices on the subscription. The adjustment will apply to invoice dates that
51827+
* overlap with this `end_date`.This `end_date` is treated as exclusive for in-advance
51828+
* prices, and inclusive for in-arrears prices.
5179951829
*/
5180051830
@JsonDeserialize(using = EndDate.Deserializer::class)
5180151831
@JsonSerialize(using = EndDate.Serializer::class)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CustomerCreateParamsTest {
2626
.excluded(true)
2727
.build()
2828
)
29-
.addAdditionalEmail("string")
29+
.addAdditionalEmail("[email protected]")
3030
.autoCollection(true)
3131
.billingAddress(
3232
CustomerCreateParams.BillingAddress.builder()
@@ -106,7 +106,7 @@ class CustomerCreateParamsTest {
106106
.excluded(true)
107107
.build()
108108
)
109-
.addAdditionalEmail("string")
109+
.addAdditionalEmail("[email protected]")
110110
.autoCollection(true)
111111
.billingAddress(
112112
CustomerCreateParams.BillingAddress.builder()
@@ -186,7 +186,7 @@ class CustomerCreateParamsTest {
186186
.excluded(true)
187187
.build()
188188
)
189-
assertThat(body.additionalEmails()).contains(listOf("string"))
189+
assertThat(body.additionalEmails()).contains(listOf("[email protected]"))
190190
assertThat(body.autoCollection()).contains(true)
191191
assertThat(body.billingAddress())
192192
.contains(

orb-java-core/src/test/kotlin/com/withorb/api/services/ErrorHandlingTest.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class ErrorHandlingTest {
8585
.excluded(true)
8686
.build()
8787
)
88-
.addAdditionalEmail("string")
88+
.addAdditionalEmail("[email protected]")
8989
.autoCollection(true)
9090
.billingAddress(
9191
CustomerCreateParams.BillingAddress.builder()
@@ -184,7 +184,7 @@ class ErrorHandlingTest {
184184
.excluded(true)
185185
.build()
186186
)
187-
.addAdditionalEmail("string")
187+
.addAdditionalEmail("[email protected]")
188188
.autoCollection(true)
189189
.billingAddress(
190190
CustomerCreateParams.BillingAddress.builder()
@@ -283,7 +283,7 @@ class ErrorHandlingTest {
283283
.excluded(true)
284284
.build()
285285
)
286-
.addAdditionalEmail("string")
286+
.addAdditionalEmail("[email protected]")
287287
.autoCollection(true)
288288
.billingAddress(
289289
CustomerCreateParams.BillingAddress.builder()
@@ -382,7 +382,7 @@ class ErrorHandlingTest {
382382
.excluded(true)
383383
.build()
384384
)
385-
.addAdditionalEmail("string")
385+
.addAdditionalEmail("[email protected]")
386386
.autoCollection(true)
387387
.billingAddress(
388388
CustomerCreateParams.BillingAddress.builder()
@@ -481,7 +481,7 @@ class ErrorHandlingTest {
481481
.excluded(true)
482482
.build()
483483
)
484-
.addAdditionalEmail("string")
484+
.addAdditionalEmail("[email protected]")
485485
.autoCollection(true)
486486
.billingAddress(
487487
CustomerCreateParams.BillingAddress.builder()
@@ -580,7 +580,7 @@ class ErrorHandlingTest {
580580
.excluded(true)
581581
.build()
582582
)
583-
.addAdditionalEmail("string")
583+
.addAdditionalEmail("[email protected]")
584584
.autoCollection(true)
585585
.billingAddress(
586586
CustomerCreateParams.BillingAddress.builder()
@@ -679,7 +679,7 @@ class ErrorHandlingTest {
679679
.excluded(true)
680680
.build()
681681
)
682-
.addAdditionalEmail("string")
682+
.addAdditionalEmail("[email protected]")
683683
.autoCollection(true)
684684
.billingAddress(
685685
CustomerCreateParams.BillingAddress.builder()
@@ -778,7 +778,7 @@ class ErrorHandlingTest {
778778
.excluded(true)
779779
.build()
780780
)
781-
.addAdditionalEmail("string")
781+
.addAdditionalEmail("[email protected]")
782782
.autoCollection(true)
783783
.billingAddress(
784784
CustomerCreateParams.BillingAddress.builder()
@@ -877,7 +877,7 @@ class ErrorHandlingTest {
877877
.excluded(true)
878878
.build()
879879
)
880-
.addAdditionalEmail("string")
880+
.addAdditionalEmail("[email protected]")
881881
.autoCollection(true)
882882
.billingAddress(
883883
CustomerCreateParams.BillingAddress.builder()

orb-java-core/src/test/kotlin/com/withorb/api/services/ServiceParamsTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ internal class ServiceParamsTest {
5454
.excluded(true)
5555
.build()
5656
)
57-
.addAdditionalEmail("string")
57+
.addAdditionalEmail("[email protected]")
5858
.autoCollection(true)
5959
.billingAddress(
6060
CustomerCreateParams.BillingAddress.builder()

orb-java-core/src/test/kotlin/com/withorb/api/services/async/CustomerServiceAsyncTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CustomerServiceAsyncTest {
4545
.excluded(true)
4646
.build()
4747
)
48-
.addAdditionalEmail("string")
48+
.addAdditionalEmail("[email protected]")
4949
.autoCollection(true)
5050
.billingAddress(
5151
CustomerCreateParams.BillingAddress.builder()

orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CustomerServiceTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CustomerServiceTest {
4545
.excluded(true)
4646
.build()
4747
)
48-
.addAdditionalEmail("string")
48+
.addAdditionalEmail("[email protected]")
4949
.autoCollection(true)
5050
.billingAddress(
5151
CustomerCreateParams.BillingAddress.builder()

0 commit comments

Comments
 (0)