Skip to content

Commit 5013205

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#76)
1 parent 6905912 commit 5013205

10 files changed

Lines changed: 63527 additions & 11200 deletions

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

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

Lines changed: 62492 additions & 11173 deletions
Large diffs are not rendered by default.

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class CustomerCreateParamsTest {
1111
@Test
1212
fun createCustomerCreateParams() {
1313
CustomerCreateParams.builder()
14-
.email("email")
14+
.email("dev@stainlessapi.com")
1515
.name("x")
1616
.accountingSyncConfiguration(
1717
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -86,7 +86,7 @@ class CustomerCreateParamsTest {
8686
fun getBody() {
8787
val params =
8888
CustomerCreateParams.builder()
89-
.email("email")
89+
.email("dev@stainlessapi.com")
9090
.name("x")
9191
.accountingSyncConfiguration(
9292
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -157,7 +157,7 @@ class CustomerCreateParamsTest {
157157
.build()
158158
val body = params.getBody()
159159
assertThat(body).isNotNull
160-
assertThat(body.email()).isEqualTo("email")
160+
assertThat(body.email()).isEqualTo("dev@stainlessapi.com")
161161
assertThat(body.name()).isEqualTo("x")
162162
assertThat(body.accountingSyncConfiguration())
163163
.isEqualTo(
@@ -234,10 +234,10 @@ class CustomerCreateParamsTest {
234234

235235
@Test
236236
fun getBodyWithoutOptionalFields() {
237-
val params = CustomerCreateParams.builder().email("email").name("x").build()
237+
val params = CustomerCreateParams.builder().email("dev@stainlessapi.com").name("x").build()
238238
val body = params.getBody()
239239
assertThat(body).isNotNull
240-
assertThat(body.email()).isEqualTo("email")
240+
assertThat(body.email()).isEqualTo("dev@stainlessapi.com")
241241
assertThat(body.name()).isEqualTo("x")
242242
}
243243
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class CustomerUpdateByExternalIdParamsTest {
4040
.build()
4141
)
4242
.currency("currency")
43-
.email("email")
43+
.email("dev@stainlessapi.com")
4444
.emailDelivery(true)
4545
.externalCustomerId("external_customer_id")
4646
.metadata(CustomerUpdateByExternalIdParams.Metadata.builder().build())
@@ -120,7 +120,7 @@ class CustomerUpdateByExternalIdParamsTest {
120120
.build()
121121
)
122122
.currency("currency")
123-
.email("email")
123+
.email("dev@stainlessapi.com")
124124
.emailDelivery(true)
125125
.externalCustomerId("external_customer_id")
126126
.metadata(CustomerUpdateByExternalIdParams.Metadata.builder().build())
@@ -197,7 +197,7 @@ class CustomerUpdateByExternalIdParamsTest {
197197
.build()
198198
)
199199
assertThat(body.currency()).isEqualTo("currency")
200-
assertThat(body.email()).isEqualTo("email")
200+
assertThat(body.email()).isEqualTo("dev@stainlessapi.com")
201201
assertThat(body.emailDelivery()).isEqualTo(true)
202202
assertThat(body.externalCustomerId()).isEqualTo("external_customer_id")
203203
assertThat(body.metadata())

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class CustomerUpdateParamsTest {
3939
.build()
4040
)
4141
.currency("currency")
42-
.email("email")
42+
.email("dev@stainlessapi.com")
4343
.emailDelivery(true)
4444
.externalCustomerId("external_customer_id")
4545
.metadata(CustomerUpdateParams.Metadata.builder().build())
@@ -114,7 +114,7 @@ class CustomerUpdateParamsTest {
114114
.build()
115115
)
116116
.currency("currency")
117-
.email("email")
117+
.email("dev@stainlessapi.com")
118118
.emailDelivery(true)
119119
.externalCustomerId("external_customer_id")
120120
.metadata(CustomerUpdateParams.Metadata.builder().build())
@@ -186,7 +186,7 @@ class CustomerUpdateParamsTest {
186186
.build()
187187
)
188188
assertThat(body.currency()).isEqualTo("currency")
189-
assertThat(body.email()).isEqualTo("email")
189+
assertThat(body.email()).isEqualTo("dev@stainlessapi.com")
190190
assertThat(body.emailDelivery()).isEqualTo(true)
191191
assertThat(body.externalCustomerId()).isEqualTo("external_customer_id")
192192
assertThat(body.metadata()).isEqualTo(CustomerUpdateParams.Metadata.builder().build())

0 commit comments

Comments
 (0)