Skip to content

Commit 176daa6

Browse files
feat(api): api update
1 parent 8588622 commit 176daa6

20 files changed

+101
-95
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: 16
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-f6fec0ae4fa4572aefa111e660f98f6acfb6149c22cbd413bd3defad6c100478.yml
3-
openapi_spec_hash: a82bf07982eae3814e8a60eb368e0ce5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-ec0e897d65bee0947046681fd3cd465ee5b44c98b020594736fb9f274ee2c00b.yml
3+
openapi_spec_hash: 9c76eb4b912f046fc93a030b9a7489a3
44
config_hash: c3aaaa9794dba44d524c06591ab17894

brand-dev-java-core/src/test/kotlin/com/branddev/api/models/brand/BrandAiProductParamsTest.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@ internal class BrandAiProductParamsTest {
99

1010
@Test
1111
fun create() {
12-
BrandAiProductParams.builder().url("https://example.com").timeoutMs(1L).build()
12+
BrandAiProductParams.builder().url("https://example.com").timeoutMs(1000L).build()
1313
}
1414

1515
@Test
1616
fun body() {
17-
val params = BrandAiProductParams.builder().url("https://example.com").timeoutMs(1L).build()
17+
val params =
18+
BrandAiProductParams.builder().url("https://example.com").timeoutMs(1000L).build()
1819

1920
val body = params._body()
2021

2122
assertThat(body.url()).isEqualTo("https://example.com")
22-
assertThat(body.timeoutMs()).contains(1L)
23+
assertThat(body.timeoutMs()).contains(1000L)
2324
}
2425

2526
@Test

brand-dev-java-core/src/test/kotlin/com/branddev/api/models/brand/BrandAiProductsParamsTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ internal class BrandAiProductsParamsTest {
1414
BrandAiProductsParams.Body.ByDomain.builder()
1515
.domain("domain")
1616
.maxProducts(1L)
17-
.timeoutMs(1L)
17+
.timeoutMs(1000L)
1818
.build()
1919
)
2020
.build()
@@ -28,7 +28,7 @@ internal class BrandAiProductsParamsTest {
2828
BrandAiProductsParams.Body.ByDomain.builder()
2929
.domain("domain")
3030
.maxProducts(1L)
31-
.timeoutMs(1L)
31+
.timeoutMs(1000L)
3232
.build()
3333
)
3434
.build()
@@ -41,7 +41,7 @@ internal class BrandAiProductsParamsTest {
4141
BrandAiProductsParams.Body.ByDomain.builder()
4242
.domain("domain")
4343
.maxProducts(1L)
44-
.timeoutMs(1L)
44+
.timeoutMs(1000L)
4545
.build()
4646
)
4747
)

brand-dev-java-core/src/test/kotlin/com/branddev/api/models/brand/BrandAiQueryParamsTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ internal class BrandAiQueryParamsTest {
4040
.termsAndConditions(true)
4141
.build()
4242
)
43-
.timeoutMs(1L)
43+
.timeoutMs(1000L)
4444
.build()
4545
}
4646

@@ -82,7 +82,7 @@ internal class BrandAiQueryParamsTest {
8282
.termsAndConditions(true)
8383
.build()
8484
)
85-
.timeoutMs(1L)
85+
.timeoutMs(1000L)
8686
.build()
8787

8888
val body = params._body()
@@ -118,7 +118,7 @@ internal class BrandAiQueryParamsTest {
118118
.termsAndConditions(true)
119119
.build()
120120
)
121-
assertThat(body.timeoutMs()).contains(1L)
121+
assertThat(body.timeoutMs()).contains(1000L)
122122
}
123123

124124
@Test

brand-dev-java-core/src/test/kotlin/com/branddev/api/models/brand/BrandFontsParamsTest.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@ internal class BrandFontsParamsTest {
1010

1111
@Test
1212
fun create() {
13-
BrandFontsParams.builder().domain("domain").timeoutMs(1L).build()
13+
BrandFontsParams.builder().domain("domain").timeoutMs(1000L).build()
1414
}
1515

1616
@Test
1717
fun queryParams() {
18-
val params = BrandFontsParams.builder().domain("domain").timeoutMs(1L).build()
18+
val params = BrandFontsParams.builder().domain("domain").timeoutMs(1000L).build()
1919

2020
val queryParams = params._queryParams()
2121

2222
assertThat(queryParams)
23-
.isEqualTo(QueryParams.builder().put("domain", "domain").put("timeoutMS", "1").build())
23+
.isEqualTo(
24+
QueryParams.builder().put("domain", "domain").put("timeoutMS", "1000").build()
25+
)
2426
}
2527

2628
@Test

brand-dev-java-core/src/test/kotlin/com/branddev/api/models/brand/BrandIdentifyFromTransactionParamsTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ internal class BrandIdentifyFromTransactionParamsTest {
1818
.maxSpeed(true)
1919
.mcc("mcc")
2020
.phone(0.0)
21-
.timeoutMs(1L)
21+
.timeoutMs(1000L)
2222
.build()
2323
}
2424

@@ -33,7 +33,7 @@ internal class BrandIdentifyFromTransactionParamsTest {
3333
.maxSpeed(true)
3434
.mcc("mcc")
3535
.phone(0.0)
36-
.timeoutMs(1L)
36+
.timeoutMs(1000L)
3737
.build()
3838

3939
val queryParams = params._queryParams()
@@ -48,7 +48,7 @@ internal class BrandIdentifyFromTransactionParamsTest {
4848
.put("maxSpeed", "true")
4949
.put("mcc", "mcc")
5050
.put("phone", "0.0")
51-
.put("timeoutMS", "1")
51+
.put("timeoutMS", "1000")
5252
.build()
5353
)
5454
}

brand-dev-java-core/src/test/kotlin/com/branddev/api/models/brand/BrandPrefetchByEmailParamsTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ internal class BrandPrefetchByEmailParamsTest {
99

1010
@Test
1111
fun create() {
12-
BrandPrefetchByEmailParams.builder().email("dev@stainless.com").timeoutMs(1L).build()
12+
BrandPrefetchByEmailParams.builder().email("dev@stainless.com").timeoutMs(1000L).build()
1313
}
1414

1515
@Test
1616
fun body() {
1717
val params =
18-
BrandPrefetchByEmailParams.builder().email("dev@stainless.com").timeoutMs(1L).build()
18+
BrandPrefetchByEmailParams.builder().email("dev@stainless.com").timeoutMs(1000L).build()
1919

2020
val body = params._body()
2121

2222
assertThat(body.email()).isEqualTo("dev@stainless.com")
23-
assertThat(body.timeoutMs()).contains(1L)
23+
assertThat(body.timeoutMs()).contains(1000L)
2424
}
2525

2626
@Test

brand-dev-java-core/src/test/kotlin/com/branddev/api/models/brand/BrandPrefetchParamsTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ internal class BrandPrefetchParamsTest {
99

1010
@Test
1111
fun create() {
12-
BrandPrefetchParams.builder().domain("domain").timeoutMs(1L).build()
12+
BrandPrefetchParams.builder().domain("domain").timeoutMs(1000L).build()
1313
}
1414

1515
@Test
1616
fun body() {
17-
val params = BrandPrefetchParams.builder().domain("domain").timeoutMs(1L).build()
17+
val params = BrandPrefetchParams.builder().domain("domain").timeoutMs(1000L).build()
1818

1919
val body = params._body()
2020

2121
assertThat(body.domain()).isEqualTo("domain")
22-
assertThat(body.timeoutMs()).contains(1L)
22+
assertThat(body.timeoutMs()).contains(1000L)
2323
}
2424

2525
@Test

brand-dev-java-core/src/test/kotlin/com/branddev/api/models/brand/BrandRetrieveByEmailParamsTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ internal class BrandRetrieveByEmailParamsTest {
1414
.email("dev@stainless.com")
1515
.forceLanguage(BrandRetrieveByEmailParams.ForceLanguage.ALBANIAN)
1616
.maxSpeed(true)
17-
.timeoutMs(1L)
17+
.timeoutMs(1000L)
1818
.build()
1919
}
2020

@@ -25,7 +25,7 @@ internal class BrandRetrieveByEmailParamsTest {
2525
.email("dev@stainless.com")
2626
.forceLanguage(BrandRetrieveByEmailParams.ForceLanguage.ALBANIAN)
2727
.maxSpeed(true)
28-
.timeoutMs(1L)
28+
.timeoutMs(1000L)
2929
.build()
3030

3131
val queryParams = params._queryParams()
@@ -36,7 +36,7 @@ internal class BrandRetrieveByEmailParamsTest {
3636
.put("email", "dev@stainless.com")
3737
.put("force_language", "albanian")
3838
.put("maxSpeed", "true")
39-
.put("timeoutMS", "1")
39+
.put("timeoutMS", "1000")
4040
.build()
4141
)
4242
}

brand-dev-java-core/src/test/kotlin/com/branddev/api/models/brand/BrandRetrieveByIsinParamsTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ internal class BrandRetrieveByIsinParamsTest {
1414
.isin("SE60513A9993")
1515
.forceLanguage(BrandRetrieveByIsinParams.ForceLanguage.ALBANIAN)
1616
.maxSpeed(true)
17-
.timeoutMs(1L)
17+
.timeoutMs(1000L)
1818
.build()
1919
}
2020

@@ -25,7 +25,7 @@ internal class BrandRetrieveByIsinParamsTest {
2525
.isin("SE60513A9993")
2626
.forceLanguage(BrandRetrieveByIsinParams.ForceLanguage.ALBANIAN)
2727
.maxSpeed(true)
28-
.timeoutMs(1L)
28+
.timeoutMs(1000L)
2929
.build()
3030

3131
val queryParams = params._queryParams()
@@ -36,7 +36,7 @@ internal class BrandRetrieveByIsinParamsTest {
3636
.put("isin", "SE60513A9993")
3737
.put("force_language", "albanian")
3838
.put("maxSpeed", "true")
39-
.put("timeoutMS", "1")
39+
.put("timeoutMS", "1000")
4040
.build()
4141
)
4242
}

0 commit comments

Comments
 (0)