Skip to content

Commit e745d41

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#78)
1 parent 28f0892 commit e745d41

File tree

6 files changed

+2807
-85
lines changed

6 files changed

+2807
-85
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-2909e111b2e1a19626356bae22b7ef7ed276e7e33b939a2b8e164ccb1ec1bf40.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-4b2c09a335c7cdb7929f3f7d890cbd00ac1e734ff3ce1de98e9a6b1aa80bb902.yml

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

Lines changed: 1379 additions & 38 deletions
Large diffs are not rendered by default.

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

Lines changed: 1379 additions & 38 deletions
Large diffs are not rendered by default.

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

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class SubscriptionCreateParamsTest {
114114
.builder()
115115
.build()
116116
)
117+
.referenceId("reference_id")
117118
.build()
118119
)
119120
)
@@ -229,6 +230,9 @@ class SubscriptionCreateParamsTest {
229230
.replacePrices(
230231
listOf(
231232
SubscriptionCreateParams.ReplacePrice.builder()
233+
.replacesPriceId("replaces_price_id")
234+
.externalPriceId("external_price_id")
235+
.fixedPriceQuantity(42.23)
232236
.price(
233237
SubscriptionCreateParams.ReplacePrice.Price.ofNewSubscriptionUnitPrice(
234238
SubscriptionCreateParams.ReplacePrice.Price.NewSubscriptionUnitPrice
@@ -299,10 +303,11 @@ class SubscriptionCreateParamsTest {
299303
.builder()
300304
.build()
301305
)
306+
.referenceId("reference_id")
302307
.build()
303308
)
304309
)
305-
.replacesPriceId("replaces_price_id")
310+
.priceId("h74gfhdjvn7ujokd")
306311
.build()
307312
)
308313
)
@@ -416,6 +421,7 @@ class SubscriptionCreateParamsTest {
416421
.builder()
417422
.build()
418423
)
424+
.referenceId("reference_id")
419425
.build()
420426
)
421427
)
@@ -535,6 +541,9 @@ class SubscriptionCreateParamsTest {
535541
.replacePrices(
536542
listOf(
537543
SubscriptionCreateParams.ReplacePrice.builder()
544+
.replacesPriceId("replaces_price_id")
545+
.externalPriceId("external_price_id")
546+
.fixedPriceQuantity(42.23)
538547
.price(
539548
SubscriptionCreateParams.ReplacePrice.Price
540549
.ofNewSubscriptionUnitPrice(
@@ -607,10 +616,11 @@ class SubscriptionCreateParamsTest {
607616
.builder()
608617
.build()
609618
)
619+
.referenceId("reference_id")
610620
.build()
611621
)
612622
)
613-
.replacesPriceId("replaces_price_id")
623+
.priceId("h74gfhdjvn7ujokd")
614624
.build()
615625
)
616626
)
@@ -722,6 +732,7 @@ class SubscriptionCreateParamsTest {
722732
.builder()
723733
.build()
724734
)
735+
.referenceId("reference_id")
725736
.build()
726737
)
727738
)
@@ -845,6 +856,9 @@ class SubscriptionCreateParamsTest {
845856
.isEqualTo(
846857
listOf(
847858
SubscriptionCreateParams.ReplacePrice.builder()
859+
.replacesPriceId("replaces_price_id")
860+
.externalPriceId("external_price_id")
861+
.fixedPriceQuantity(42.23)
848862
.price(
849863
SubscriptionCreateParams.ReplacePrice.Price.ofNewSubscriptionUnitPrice(
850864
SubscriptionCreateParams.ReplacePrice.Price.NewSubscriptionUnitPrice
@@ -915,10 +929,11 @@ class SubscriptionCreateParamsTest {
915929
.builder()
916930
.build()
917931
)
932+
.referenceId("reference_id")
918933
.build()
919934
)
920935
)
921-
.replacesPriceId("replaces_price_id")
936+
.priceId("h74gfhdjvn7ujokd")
922937
.build()
923938
)
924939
)

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

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ class SubscriptionSchedulePlanChangeParamsTest {
121121
.builder()
122122
.build()
123123
)
124+
.referenceId("reference_id")
124125
.build()
125126
)
126127
)
@@ -233,6 +234,9 @@ class SubscriptionSchedulePlanChangeParamsTest {
233234
.replacePrices(
234235
listOf(
235236
SubscriptionSchedulePlanChangeParams.ReplacePrice.builder()
237+
.replacesPriceId("replaces_price_id")
238+
.externalPriceId("external_price_id")
239+
.fixedPriceQuantity(42.23)
236240
.price(
237241
SubscriptionSchedulePlanChangeParams.ReplacePrice.Price
238242
.ofNewSubscriptionUnitPrice(
@@ -309,10 +313,11 @@ class SubscriptionSchedulePlanChangeParamsTest {
309313
.builder()
310314
.build()
311315
)
316+
.referenceId("reference_id")
312317
.build()
313318
)
314319
)
315-
.replacesPriceId("replaces_price_id")
320+
.priceId("h74gfhdjvn7ujokd")
316321
.build()
317322
)
318323
)
@@ -435,6 +440,7 @@ class SubscriptionSchedulePlanChangeParamsTest {
435440
.builder()
436441
.build()
437442
)
443+
.referenceId("reference_id")
438444
.build()
439445
)
440446
)
@@ -551,6 +557,9 @@ class SubscriptionSchedulePlanChangeParamsTest {
551557
.replacePrices(
552558
listOf(
553559
SubscriptionSchedulePlanChangeParams.ReplacePrice.builder()
560+
.replacesPriceId("replaces_price_id")
561+
.externalPriceId("external_price_id")
562+
.fixedPriceQuantity(42.23)
554563
.price(
555564
SubscriptionSchedulePlanChangeParams.ReplacePrice.Price
556565
.ofNewSubscriptionUnitPrice(
@@ -633,10 +642,11 @@ class SubscriptionSchedulePlanChangeParamsTest {
633642
.builder()
634643
.build()
635644
)
645+
.referenceId("reference_id")
636646
.build()
637647
)
638648
)
639-
.replacesPriceId("replaces_price_id")
649+
.priceId("h74gfhdjvn7ujokd")
640650
.build()
641651
)
642652
)
@@ -754,6 +764,7 @@ class SubscriptionSchedulePlanChangeParamsTest {
754764
.builder()
755765
.build()
756766
)
767+
.referenceId("reference_id")
757768
.build()
758769
)
759770
)
@@ -870,6 +881,9 @@ class SubscriptionSchedulePlanChangeParamsTest {
870881
.isEqualTo(
871882
listOf(
872883
SubscriptionSchedulePlanChangeParams.ReplacePrice.builder()
884+
.replacesPriceId("replaces_price_id")
885+
.externalPriceId("external_price_id")
886+
.fixedPriceQuantity(42.23)
873887
.price(
874888
SubscriptionSchedulePlanChangeParams.ReplacePrice.Price
875889
.ofNewSubscriptionUnitPrice(
@@ -946,10 +960,11 @@ class SubscriptionSchedulePlanChangeParamsTest {
946960
.builder()
947961
.build()
948962
)
963+
.referenceId("reference_id")
949964
.build()
950965
)
951966
)
952-
.replacesPriceId("replaces_price_id")
967+
.priceId("h74gfhdjvn7ujokd")
953968
.build()
954969
)
955970
)

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ class SubscriptionServiceTest {
132132
.builder()
133133
.build()
134134
)
135+
.referenceId("reference_id")
135136
.build()
136137
)
137138
)
@@ -252,6 +253,9 @@ class SubscriptionServiceTest {
252253
.replacePrices(
253254
listOf(
254255
SubscriptionCreateParams.ReplacePrice.builder()
256+
.replacesPriceId("replaces_price_id")
257+
.externalPriceId("external_price_id")
258+
.fixedPriceQuantity(42.23)
255259
.price(
256260
SubscriptionCreateParams.ReplacePrice.Price
257261
.ofNewSubscriptionUnitPrice(
@@ -326,10 +330,11 @@ class SubscriptionServiceTest {
326330
.builder()
327331
.build()
328332
)
333+
.referenceId("reference_id")
329334
.build()
330335
)
331336
)
332-
.replacesPriceId("replaces_price_id")
337+
.priceId("h74gfhdjvn7ujokd")
333338
.build()
334339
)
335340
)
@@ -854,6 +859,7 @@ class SubscriptionServiceTest {
854859
.builder()
855860
.build()
856861
)
862+
.referenceId("reference_id")
857863
.build()
858864
)
859865
)
@@ -971,6 +977,9 @@ class SubscriptionServiceTest {
971977
.replacePrices(
972978
listOf(
973979
SubscriptionSchedulePlanChangeParams.ReplacePrice.builder()
980+
.replacesPriceId("replaces_price_id")
981+
.externalPriceId("external_price_id")
982+
.fixedPriceQuantity(42.23)
974983
.price(
975984
SubscriptionSchedulePlanChangeParams.ReplacePrice.Price
976985
.ofNewSubscriptionUnitPrice(
@@ -1059,10 +1068,11 @@ class SubscriptionServiceTest {
10591068
.builder()
10601069
.build()
10611070
)
1071+
.referenceId("reference_id")
10621072
.build()
10631073
)
10641074
)
1065-
.replacesPriceId("replaces_price_id")
1075+
.priceId("h74gfhdjvn7ujokd")
10661076
.build()
10671077
)
10681078
)

0 commit comments

Comments
 (0)