Skip to content

Commit f14a0b8

Browse files
feat(api): api update
1 parent c20680a commit f14a0b8

20 files changed

+3391
-6
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-033643979990e894363554df06218fabe4493feaa569a013dbdf9a72aa21c45f.yml
3-
openapi_spec_hash: dd9d320ad178bafa06f1eac2977e2ca7
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-7936e3f73bbe1d59d27fd7a8a226985927b38fdec1c936c77577381699fb6140.yml
3+
openapi_spec_hash: 1d3f9ed5fbdb0e40d56d6acd9d1736e2
44
config_hash: e6db17547fe854b1c240407cf4c6dc9e

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

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

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

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

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

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

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

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

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

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@ internal class CustomerCreateParamsTest {
5252
.putAdditionalProperty("foo", JsonValue.from("string"))
5353
.build()
5454
)
55+
.paymentConfiguration(
56+
CustomerCreateParams.PaymentConfiguration.builder()
57+
.addPaymentProvider(
58+
CustomerCreateParams.PaymentConfiguration.PaymentProvider.builder()
59+
.providerType(
60+
CustomerCreateParams.PaymentConfiguration.PaymentProvider
61+
.ProviderType
62+
.STRIPE
63+
)
64+
.addExcludedPaymentMethodType("string")
65+
.build()
66+
)
67+
.build()
68+
)
5569
.paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS)
5670
.paymentProviderId("payment_provider_id")
5771
.reportingConfiguration(NewReportingConfiguration.builder().exempt(true).build())
@@ -128,6 +142,20 @@ internal class CustomerCreateParamsTest {
128142
.putAdditionalProperty("foo", JsonValue.from("string"))
129143
.build()
130144
)
145+
.paymentConfiguration(
146+
CustomerCreateParams.PaymentConfiguration.builder()
147+
.addPaymentProvider(
148+
CustomerCreateParams.PaymentConfiguration.PaymentProvider.builder()
149+
.providerType(
150+
CustomerCreateParams.PaymentConfiguration.PaymentProvider
151+
.ProviderType
152+
.STRIPE
153+
)
154+
.addExcludedPaymentMethodType("string")
155+
.build()
156+
)
157+
.build()
158+
)
131159
.paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS)
132160
.paymentProviderId("payment_provider_id")
133161
.reportingConfiguration(NewReportingConfiguration.builder().exempt(true).build())
@@ -205,6 +233,21 @@ internal class CustomerCreateParamsTest {
205233
.putAdditionalProperty("foo", JsonValue.from("string"))
206234
.build()
207235
)
236+
assertThat(body.paymentConfiguration())
237+
.contains(
238+
CustomerCreateParams.PaymentConfiguration.builder()
239+
.addPaymentProvider(
240+
CustomerCreateParams.PaymentConfiguration.PaymentProvider.builder()
241+
.providerType(
242+
CustomerCreateParams.PaymentConfiguration.PaymentProvider
243+
.ProviderType
244+
.STRIPE
245+
)
246+
.addExcludedPaymentMethodType("string")
247+
.build()
248+
)
249+
.build()
250+
)
208251
assertThat(body.paymentProvider()).contains(CustomerCreateParams.PaymentProvider.QUICKBOOKS)
209252
assertThat(body.paymentProviderId()).contains("payment_provider_id")
210253
assertThat(body.reportingConfiguration())

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

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,20 @@ internal class CustomerListPageResponseTest {
9898
.build()
9999
)
100100
.automaticTaxEnabled(true)
101+
.paymentConfiguration(
102+
Customer.PaymentConfiguration.builder()
103+
.addPaymentProvider(
104+
Customer.PaymentConfiguration.PaymentProvider.builder()
105+
.providerType(
106+
Customer.PaymentConfiguration.PaymentProvider
107+
.ProviderType
108+
.STRIPE
109+
)
110+
.addExcludedPaymentMethodType("string")
111+
.build()
112+
)
113+
.build()
114+
)
101115
.reportingConfiguration(
102116
Customer.ReportingConfiguration.builder().exempt(true).build()
103117
)
@@ -191,6 +205,19 @@ internal class CustomerListPageResponseTest {
191205
.build()
192206
)
193207
.automaticTaxEnabled(true)
208+
.paymentConfiguration(
209+
Customer.PaymentConfiguration.builder()
210+
.addPaymentProvider(
211+
Customer.PaymentConfiguration.PaymentProvider.builder()
212+
.providerType(
213+
Customer.PaymentConfiguration.PaymentProvider.ProviderType
214+
.STRIPE
215+
)
216+
.addExcludedPaymentMethodType("string")
217+
.build()
218+
)
219+
.build()
220+
)
194221
.reportingConfiguration(
195222
Customer.ReportingConfiguration.builder().exempt(true).build()
196223
)
@@ -288,6 +315,20 @@ internal class CustomerListPageResponseTest {
288315
.build()
289316
)
290317
.automaticTaxEnabled(true)
318+
.paymentConfiguration(
319+
Customer.PaymentConfiguration.builder()
320+
.addPaymentProvider(
321+
Customer.PaymentConfiguration.PaymentProvider.builder()
322+
.providerType(
323+
Customer.PaymentConfiguration.PaymentProvider
324+
.ProviderType
325+
.STRIPE
326+
)
327+
.addExcludedPaymentMethodType("string")
328+
.build()
329+
)
330+
.build()
331+
)
291332
.reportingConfiguration(
292333
Customer.ReportingConfiguration.builder().exempt(true).build()
293334
)

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@ internal class CustomerTest {
9595
.build()
9696
)
9797
.automaticTaxEnabled(true)
98+
.paymentConfiguration(
99+
Customer.PaymentConfiguration.builder()
100+
.addPaymentProvider(
101+
Customer.PaymentConfiguration.PaymentProvider.builder()
102+
.providerType(
103+
Customer.PaymentConfiguration.PaymentProvider.ProviderType
104+
.STRIPE
105+
)
106+
.addExcludedPaymentMethodType("string")
107+
.build()
108+
)
109+
.build()
110+
)
98111
.reportingConfiguration(
99112
Customer.ReportingConfiguration.builder().exempt(true).build()
100113
)
@@ -185,6 +198,19 @@ internal class CustomerTest {
185198
.build()
186199
)
187200
assertThat(customer.automaticTaxEnabled()).contains(true)
201+
assertThat(customer.paymentConfiguration())
202+
.contains(
203+
Customer.PaymentConfiguration.builder()
204+
.addPaymentProvider(
205+
Customer.PaymentConfiguration.PaymentProvider.builder()
206+
.providerType(
207+
Customer.PaymentConfiguration.PaymentProvider.ProviderType.STRIPE
208+
)
209+
.addExcludedPaymentMethodType("string")
210+
.build()
211+
)
212+
.build()
213+
)
188214
assertThat(customer.reportingConfiguration())
189215
.contains(Customer.ReportingConfiguration.builder().exempt(true).build())
190216
}
@@ -274,6 +300,19 @@ internal class CustomerTest {
274300
.build()
275301
)
276302
.automaticTaxEnabled(true)
303+
.paymentConfiguration(
304+
Customer.PaymentConfiguration.builder()
305+
.addPaymentProvider(
306+
Customer.PaymentConfiguration.PaymentProvider.builder()
307+
.providerType(
308+
Customer.PaymentConfiguration.PaymentProvider.ProviderType
309+
.STRIPE
310+
)
311+
.addExcludedPaymentMethodType("string")
312+
.build()
313+
)
314+
.build()
315+
)
277316
.reportingConfiguration(
278317
Customer.ReportingConfiguration.builder().exempt(true).build()
279318
)

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

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ internal class CustomerUpdateByExternalIdParamsTest {
5353
.build()
5454
)
5555
.name("name")
56+
.paymentConfiguration(
57+
CustomerUpdateByExternalIdParams.PaymentConfiguration.builder()
58+
.addPaymentProvider(
59+
CustomerUpdateByExternalIdParams.PaymentConfiguration.PaymentProvider
60+
.builder()
61+
.providerType(
62+
CustomerUpdateByExternalIdParams.PaymentConfiguration
63+
.PaymentProvider
64+
.ProviderType
65+
.STRIPE
66+
)
67+
.addExcludedPaymentMethodType("string")
68+
.build()
69+
)
70+
.build()
71+
)
5672
.paymentProvider(CustomerUpdateByExternalIdParams.PaymentProvider.QUICKBOOKS)
5773
.paymentProviderId("payment_provider_id")
5874
.reportingConfiguration(NewReportingConfiguration.builder().exempt(true).build())
@@ -138,6 +154,22 @@ internal class CustomerUpdateByExternalIdParamsTest {
138154
.build()
139155
)
140156
.name("name")
157+
.paymentConfiguration(
158+
CustomerUpdateByExternalIdParams.PaymentConfiguration.builder()
159+
.addPaymentProvider(
160+
CustomerUpdateByExternalIdParams.PaymentConfiguration.PaymentProvider
161+
.builder()
162+
.providerType(
163+
CustomerUpdateByExternalIdParams.PaymentConfiguration
164+
.PaymentProvider
165+
.ProviderType
166+
.STRIPE
167+
)
168+
.addExcludedPaymentMethodType("string")
169+
.build()
170+
)
171+
.build()
172+
)
141173
.paymentProvider(CustomerUpdateByExternalIdParams.PaymentProvider.QUICKBOOKS)
142174
.paymentProviderId("payment_provider_id")
143175
.reportingConfiguration(NewReportingConfiguration.builder().exempt(true).build())
@@ -214,6 +246,23 @@ internal class CustomerUpdateByExternalIdParamsTest {
214246
.build()
215247
)
216248
assertThat(body.name()).contains("name")
249+
assertThat(body.paymentConfiguration())
250+
.contains(
251+
CustomerUpdateByExternalIdParams.PaymentConfiguration.builder()
252+
.addPaymentProvider(
253+
CustomerUpdateByExternalIdParams.PaymentConfiguration.PaymentProvider
254+
.builder()
255+
.providerType(
256+
CustomerUpdateByExternalIdParams.PaymentConfiguration
257+
.PaymentProvider
258+
.ProviderType
259+
.STRIPE
260+
)
261+
.addExcludedPaymentMethodType("string")
262+
.build()
263+
)
264+
.build()
265+
)
217266
assertThat(body.paymentProvider())
218267
.contains(CustomerUpdateByExternalIdParams.PaymentProvider.QUICKBOOKS)
219268
assertThat(body.paymentProviderId()).contains("payment_provider_id")

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

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,20 @@ internal class CustomerUpdateParamsTest {
5353
.build()
5454
)
5555
.name("name")
56+
.paymentConfiguration(
57+
CustomerUpdateParams.PaymentConfiguration.builder()
58+
.addPaymentProvider(
59+
CustomerUpdateParams.PaymentConfiguration.PaymentProvider.builder()
60+
.providerType(
61+
CustomerUpdateParams.PaymentConfiguration.PaymentProvider
62+
.ProviderType
63+
.STRIPE
64+
)
65+
.addExcludedPaymentMethodType("string")
66+
.build()
67+
)
68+
.build()
69+
)
5670
.paymentProvider(CustomerUpdateParams.PaymentProvider.QUICKBOOKS)
5771
.paymentProviderId("payment_provider_id")
5872
.reportingConfiguration(NewReportingConfiguration.builder().exempt(true).build())
@@ -138,6 +152,20 @@ internal class CustomerUpdateParamsTest {
138152
.build()
139153
)
140154
.name("name")
155+
.paymentConfiguration(
156+
CustomerUpdateParams.PaymentConfiguration.builder()
157+
.addPaymentProvider(
158+
CustomerUpdateParams.PaymentConfiguration.PaymentProvider.builder()
159+
.providerType(
160+
CustomerUpdateParams.PaymentConfiguration.PaymentProvider
161+
.ProviderType
162+
.STRIPE
163+
)
164+
.addExcludedPaymentMethodType("string")
165+
.build()
166+
)
167+
.build()
168+
)
141169
.paymentProvider(CustomerUpdateParams.PaymentProvider.QUICKBOOKS)
142170
.paymentProviderId("payment_provider_id")
143171
.reportingConfiguration(NewReportingConfiguration.builder().exempt(true).build())
@@ -214,6 +242,21 @@ internal class CustomerUpdateParamsTest {
214242
.build()
215243
)
216244
assertThat(body.name()).contains("name")
245+
assertThat(body.paymentConfiguration())
246+
.contains(
247+
CustomerUpdateParams.PaymentConfiguration.builder()
248+
.addPaymentProvider(
249+
CustomerUpdateParams.PaymentConfiguration.PaymentProvider.builder()
250+
.providerType(
251+
CustomerUpdateParams.PaymentConfiguration.PaymentProvider
252+
.ProviderType
253+
.STRIPE
254+
)
255+
.addExcludedPaymentMethodType("string")
256+
.build()
257+
)
258+
.build()
259+
)
217260
assertThat(body.paymentProvider()).contains(CustomerUpdateParams.PaymentProvider.QUICKBOOKS)
218261
assertThat(body.paymentProviderId()).contains("payment_provider_id")
219262
assertThat(body.reportingConfiguration())

0 commit comments

Comments
 (0)