Skip to content

Commit c7d3dda

Browse files
feat(api): api update
1 parent 5f65069 commit c7d3dda

23 files changed

+2321
-7
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: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-79664fa0b4ea00c978ae2516087d0ee591b0ef92ca8db29557a0424bde520e10.yml
3-
openapi_spec_hash: 1ff6eee9184312a3a0fd21eb589132f9
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d1abf71a1a70a43bdcc4da7104dabcbd67aa7e2d3e6cf21e33f50904b6997bb2.yml
3+
openapi_spec_hash: 28b0b31a997588cf3692458889321e1b
44
config_hash: dd4343ce95871032ef6e0735a4ca038c

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

Lines changed: 601 additions & 1 deletion
Large diffs are not rendered by default.

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

Lines changed: 601 additions & 1 deletion
Large diffs are not rendered by default.

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

Lines changed: 573 additions & 3 deletions
Large diffs are not rendered by default.

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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ internal class BetaCreatePlanVersionParamsTest {
5656
.build()
5757
)
5858
.expiresAtEndOfCadence(true)
59+
.addFilter(
60+
NewAllocationPrice.Filter.builder()
61+
.field(NewAllocationPrice.Filter.Field.ITEM_ID)
62+
.operator(NewAllocationPrice.Filter.Operator.INCLUDES)
63+
.addValue("string")
64+
.build()
65+
)
5966
.build()
6067
)
6168
.planPhaseOrder(0L)
@@ -163,6 +170,13 @@ internal class BetaCreatePlanVersionParamsTest {
163170
.build()
164171
)
165172
.expiresAtEndOfCadence(true)
173+
.addFilter(
174+
NewAllocationPrice.Filter.builder()
175+
.field(NewAllocationPrice.Filter.Field.ITEM_ID)
176+
.operator(NewAllocationPrice.Filter.Operator.INCLUDES)
177+
.addValue("string")
178+
.build()
179+
)
166180
.build()
167181
)
168182
.planPhaseOrder(0L)
@@ -275,6 +289,13 @@ internal class BetaCreatePlanVersionParamsTest {
275289
.build()
276290
)
277291
.expiresAtEndOfCadence(true)
292+
.addFilter(
293+
NewAllocationPrice.Filter.builder()
294+
.field(NewAllocationPrice.Filter.Field.ITEM_ID)
295+
.operator(NewAllocationPrice.Filter.Operator.INCLUDES)
296+
.addValue("string")
297+
.build()
298+
)
278299
.build()
279300
)
280301
.planPhaseOrder(0L)
@@ -384,6 +405,13 @@ internal class BetaCreatePlanVersionParamsTest {
384405
.build()
385406
)
386407
.expiresAtEndOfCadence(true)
408+
.addFilter(
409+
NewAllocationPrice.Filter.builder()
410+
.field(NewAllocationPrice.Filter.Field.ITEM_ID)
411+
.operator(NewAllocationPrice.Filter.Operator.INCLUDES)
412+
.addValue("string")
413+
.build()
414+
)
387415
.build()
388416
)
389417
.planPhaseOrder(0L)
@@ -487,6 +515,13 @@ internal class BetaCreatePlanVersionParamsTest {
487515
.build()
488516
)
489517
.expiresAtEndOfCadence(true)
518+
.addFilter(
519+
NewAllocationPrice.Filter.builder()
520+
.field(NewAllocationPrice.Filter.Field.ITEM_ID)
521+
.operator(NewAllocationPrice.Filter.Operator.INCLUDES)
522+
.addValue("string")
523+
.build()
524+
)
490525
.build()
491526
)
492527
.planPhaseOrder(0L)
@@ -598,6 +633,13 @@ internal class BetaCreatePlanVersionParamsTest {
598633
.build()
599634
)
600635
.expiresAtEndOfCadence(true)
636+
.addFilter(
637+
NewAllocationPrice.Filter.builder()
638+
.field(NewAllocationPrice.Filter.Field.ITEM_ID)
639+
.operator(NewAllocationPrice.Filter.Operator.INCLUDES)
640+
.addValue("string")
641+
.build()
642+
)
601643
.build()
602644
)
603645
.planPhaseOrder(0L)

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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ internal class BetaExternalPlanIdCreatePlanVersionParamsTest {
5656
.build()
5757
)
5858
.expiresAtEndOfCadence(true)
59+
.addFilter(
60+
NewAllocationPrice.Filter.builder()
61+
.field(NewAllocationPrice.Filter.Field.ITEM_ID)
62+
.operator(NewAllocationPrice.Filter.Operator.INCLUDES)
63+
.addValue("string")
64+
.build()
65+
)
5966
.build()
6067
)
6168
.planPhaseOrder(0L)
@@ -163,6 +170,13 @@ internal class BetaExternalPlanIdCreatePlanVersionParamsTest {
163170
.build()
164171
)
165172
.expiresAtEndOfCadence(true)
173+
.addFilter(
174+
NewAllocationPrice.Filter.builder()
175+
.field(NewAllocationPrice.Filter.Field.ITEM_ID)
176+
.operator(NewAllocationPrice.Filter.Operator.INCLUDES)
177+
.addValue("string")
178+
.build()
179+
)
166180
.build()
167181
)
168182
.planPhaseOrder(0L)
@@ -279,6 +293,13 @@ internal class BetaExternalPlanIdCreatePlanVersionParamsTest {
279293
.build()
280294
)
281295
.expiresAtEndOfCadence(true)
296+
.addFilter(
297+
NewAllocationPrice.Filter.builder()
298+
.field(NewAllocationPrice.Filter.Field.ITEM_ID)
299+
.operator(NewAllocationPrice.Filter.Operator.INCLUDES)
300+
.addValue("string")
301+
.build()
302+
)
282303
.build()
283304
)
284305
.planPhaseOrder(0L)
@@ -388,6 +409,13 @@ internal class BetaExternalPlanIdCreatePlanVersionParamsTest {
388409
.build()
389410
)
390411
.expiresAtEndOfCadence(true)
412+
.addFilter(
413+
NewAllocationPrice.Filter.builder()
414+
.field(NewAllocationPrice.Filter.Field.ITEM_ID)
415+
.operator(NewAllocationPrice.Filter.Operator.INCLUDES)
416+
.addValue("string")
417+
.build()
418+
)
391419
.build()
392420
)
393421
.planPhaseOrder(0L)
@@ -491,6 +519,13 @@ internal class BetaExternalPlanIdCreatePlanVersionParamsTest {
491519
.build()
492520
)
493521
.expiresAtEndOfCadence(true)
522+
.addFilter(
523+
NewAllocationPrice.Filter.builder()
524+
.field(NewAllocationPrice.Filter.Field.ITEM_ID)
525+
.operator(NewAllocationPrice.Filter.Operator.INCLUDES)
526+
.addValue("string")
527+
.build()
528+
)
494529
.build()
495530
)
496531
.planPhaseOrder(0L)
@@ -602,6 +637,13 @@ internal class BetaExternalPlanIdCreatePlanVersionParamsTest {
602637
.build()
603638
)
604639
.expiresAtEndOfCadence(true)
640+
.addFilter(
641+
NewAllocationPrice.Filter.builder()
642+
.field(NewAllocationPrice.Filter.Field.ITEM_ID)
643+
.operator(NewAllocationPrice.Filter.Operator.INCLUDES)
644+
.addValue("string")
645+
.build()
646+
)
605647
.build()
606648
)
607649
.planPhaseOrder(0L)

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

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,24 @@ internal class CustomerCreditLedgerCreateEntryByExternalIdParamsTest {
2121
.description("description")
2222
.effectiveDate(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
2323
.expiryDate(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
24+
.addFilter(
25+
CustomerCreditLedgerCreateEntryByExternalIdParams.Body.Increment.Filter
26+
.builder()
27+
.field(
28+
CustomerCreditLedgerCreateEntryByExternalIdParams.Body.Increment
29+
.Filter
30+
.Field
31+
.ITEM_ID
32+
)
33+
.operator(
34+
CustomerCreditLedgerCreateEntryByExternalIdParams.Body.Increment
35+
.Filter
36+
.Operator
37+
.INCLUDES
38+
)
39+
.addValue("string")
40+
.build()
41+
)
2442
.invoiceSettings(
2543
CustomerCreditLedgerCreateEntryByExternalIdParams.Body.Increment
2644
.InvoiceSettings
@@ -71,6 +89,24 @@ internal class CustomerCreditLedgerCreateEntryByExternalIdParamsTest {
7189
.description("description")
7290
.effectiveDate(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
7391
.expiryDate(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
92+
.addFilter(
93+
CustomerCreditLedgerCreateEntryByExternalIdParams.Body.Increment.Filter
94+
.builder()
95+
.field(
96+
CustomerCreditLedgerCreateEntryByExternalIdParams.Body.Increment
97+
.Filter
98+
.Field
99+
.ITEM_ID
100+
)
101+
.operator(
102+
CustomerCreditLedgerCreateEntryByExternalIdParams.Body.Increment
103+
.Filter
104+
.Operator
105+
.INCLUDES
106+
)
107+
.addValue("string")
108+
.build()
109+
)
74110
.invoiceSettings(
75111
CustomerCreditLedgerCreateEntryByExternalIdParams.Body.Increment
76112
.InvoiceSettings
@@ -107,6 +143,24 @@ internal class CustomerCreditLedgerCreateEntryByExternalIdParamsTest {
107143
.description("description")
108144
.effectiveDate(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
109145
.expiryDate(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
146+
.addFilter(
147+
CustomerCreditLedgerCreateEntryByExternalIdParams.Body.Increment.Filter
148+
.builder()
149+
.field(
150+
CustomerCreditLedgerCreateEntryByExternalIdParams.Body.Increment
151+
.Filter
152+
.Field
153+
.ITEM_ID
154+
)
155+
.operator(
156+
CustomerCreditLedgerCreateEntryByExternalIdParams.Body.Increment
157+
.Filter
158+
.Operator
159+
.INCLUDES
160+
)
161+
.addValue("string")
162+
.build()
163+
)
110164
.invoiceSettings(
111165
CustomerCreditLedgerCreateEntryByExternalIdParams.Body.Increment
112166
.InvoiceSettings

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

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,19 @@ internal class CustomerCreditLedgerCreateEntryParamsTest {
2121
.description("description")
2222
.effectiveDate(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
2323
.expiryDate(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
24+
.addFilter(
25+
CustomerCreditLedgerCreateEntryParams.Body.Increment.Filter.builder()
26+
.field(
27+
CustomerCreditLedgerCreateEntryParams.Body.Increment.Filter.Field
28+
.ITEM_ID
29+
)
30+
.operator(
31+
CustomerCreditLedgerCreateEntryParams.Body.Increment.Filter.Operator
32+
.INCLUDES
33+
)
34+
.addValue("string")
35+
.build()
36+
)
2437
.invoiceSettings(
2538
CustomerCreditLedgerCreateEntryParams.Body.Increment.InvoiceSettings
2639
.builder()
@@ -69,6 +82,21 @@ internal class CustomerCreditLedgerCreateEntryParamsTest {
6982
.description("description")
7083
.effectiveDate(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
7184
.expiryDate(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
85+
.addFilter(
86+
CustomerCreditLedgerCreateEntryParams.Body.Increment.Filter.builder()
87+
.field(
88+
CustomerCreditLedgerCreateEntryParams.Body.Increment.Filter
89+
.Field
90+
.ITEM_ID
91+
)
92+
.operator(
93+
CustomerCreditLedgerCreateEntryParams.Body.Increment.Filter
94+
.Operator
95+
.INCLUDES
96+
)
97+
.addValue("string")
98+
.build()
99+
)
72100
.invoiceSettings(
73101
CustomerCreditLedgerCreateEntryParams.Body.Increment.InvoiceSettings
74102
.builder()
@@ -102,6 +130,21 @@ internal class CustomerCreditLedgerCreateEntryParamsTest {
102130
.description("description")
103131
.effectiveDate(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
104132
.expiryDate(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
133+
.addFilter(
134+
CustomerCreditLedgerCreateEntryParams.Body.Increment.Filter.builder()
135+
.field(
136+
CustomerCreditLedgerCreateEntryParams.Body.Increment.Filter
137+
.Field
138+
.ITEM_ID
139+
)
140+
.operator(
141+
CustomerCreditLedgerCreateEntryParams.Body.Increment.Filter
142+
.Operator
143+
.INCLUDES
144+
)
145+
.addValue("string")
146+
.build()
147+
)
105148
.invoiceSettings(
106149
CustomerCreditLedgerCreateEntryParams.Body.Increment.InvoiceSettings
107150
.builder()

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package com.withorb.api.models
44

55
import com.fasterxml.jackson.module.kotlin.jacksonTypeRef
66
import com.withorb.api.core.jsonMapper
7+
import kotlin.jvm.optionals.getOrNull
78
import org.assertj.core.api.Assertions.assertThat
89
import org.junit.jupiter.api.Test
910

@@ -23,6 +24,13 @@ internal class NewAllocationPriceTest {
2324
.build()
2425
)
2526
.expiresAtEndOfCadence(true)
27+
.addFilter(
28+
NewAllocationPrice.Filter.builder()
29+
.field(NewAllocationPrice.Filter.Field.ITEM_ID)
30+
.operator(NewAllocationPrice.Filter.Operator.INCLUDES)
31+
.addValue("string")
32+
.build()
33+
)
2634
.build()
2735

2836
assertThat(newAllocationPrice.amount()).isEqualTo("10.00")
@@ -36,6 +44,14 @@ internal class NewAllocationPriceTest {
3644
.build()
3745
)
3846
assertThat(newAllocationPrice.expiresAtEndOfCadence()).contains(true)
47+
assertThat(newAllocationPrice.filters().getOrNull())
48+
.containsExactly(
49+
NewAllocationPrice.Filter.builder()
50+
.field(NewAllocationPrice.Filter.Field.ITEM_ID)
51+
.operator(NewAllocationPrice.Filter.Operator.INCLUDES)
52+
.addValue("string")
53+
.build()
54+
)
3955
}
4056

4157
@Test
@@ -53,6 +69,13 @@ internal class NewAllocationPriceTest {
5369
.build()
5470
)
5571
.expiresAtEndOfCadence(true)
72+
.addFilter(
73+
NewAllocationPrice.Filter.builder()
74+
.field(NewAllocationPrice.Filter.Field.ITEM_ID)
75+
.operator(NewAllocationPrice.Filter.Operator.INCLUDES)
76+
.addValue("string")
77+
.build()
78+
)
5679
.build()
5780

5881
val roundtrippedNewAllocationPrice =

0 commit comments

Comments
 (0)