From 00aa6d816e93d25184916b170a4ccda146a94d51 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 06:34:09 +0000 Subject: [PATCH 1/2] feat(api): api update (#611) --- .stats.yml | 2 +- .../main/kotlin/com/increase/api/models/CardPayment.kt | 9 +++------ .../com/increase/api/models/DeclinedTransaction.kt | 3 +-- .../kotlin/com/increase/api/models/PendingTransaction.kt | 3 +-- .../kotlin/com/increase/api/models/RealTimeDecision.kt | 3 +-- 5 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.stats.yml b/.stats.yml index c144966e..01cbe9fb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 199 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-8b8e19d1cfc46bbf4bd8f898d3231d6d571ae179ff531b22037470d4051f8351.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-8ced45f4f5595df242ca2c43d1c74f4904ca3d18581ea6ca335f885967a0a663.yml diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/CardPayment.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/CardPayment.kt index b9659b9c..e5dcfdd3 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/CardPayment.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/CardPayment.kt @@ -839,8 +839,7 @@ private constructor( merchantCategoryCode.getRequired("merchant_category_code") /** The city the merchant resides in. */ - fun merchantCity(): Optional = - Optional.ofNullable(merchantCity.getNullable("merchant_city")) + fun merchantCity(): String = merchantCity.getRequired("merchant_city") /** The country the merchant resides in. */ fun merchantCountry(): String = merchantCountry.getRequired("merchant_country") @@ -4046,8 +4045,7 @@ private constructor( merchantCategoryCode.getRequired("merchant_category_code") /** The city the merchant resides in. */ - fun merchantCity(): Optional = - Optional.ofNullable(merchantCity.getNullable("merchant_city")) + fun merchantCity(): String = merchantCity.getRequired("merchant_city") /** The country the merchant resides in. */ fun merchantCountry(): String = merchantCountry.getRequired("merchant_country") @@ -18894,8 +18892,7 @@ private constructor( merchantCategoryCode.getRequired("merchant_category_code") /** The city the merchant resides in. */ - fun merchantCity(): Optional = - Optional.ofNullable(merchantCity.getNullable("merchant_city")) + fun merchantCity(): String = merchantCity.getRequired("merchant_city") /** The country the merchant resides in. */ fun merchantCountry(): String = merchantCountry.getRequired("merchant_country") diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/DeclinedTransaction.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/DeclinedTransaction.kt index 33acd852..f51c5614 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/DeclinedTransaction.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/DeclinedTransaction.kt @@ -1547,8 +1547,7 @@ private constructor( merchantCategoryCode.getRequired("merchant_category_code") /** The city the merchant resides in. */ - fun merchantCity(): Optional = - Optional.ofNullable(merchantCity.getNullable("merchant_city")) + fun merchantCity(): String = merchantCity.getRequired("merchant_city") /** The country the merchant resides in. */ fun merchantCountry(): String = merchantCountry.getRequired("merchant_country") diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/PendingTransaction.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/PendingTransaction.kt index a89e59fc..d03b7211 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/PendingTransaction.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/PendingTransaction.kt @@ -1442,8 +1442,7 @@ private constructor( merchantCategoryCode.getRequired("merchant_category_code") /** The city the merchant resides in. */ - fun merchantCity(): Optional = - Optional.ofNullable(merchantCity.getNullable("merchant_city")) + fun merchantCity(): String = merchantCity.getRequired("merchant_city") /** The country the merchant resides in. */ fun merchantCountry(): String = merchantCountry.getRequired("merchant_country") diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/RealTimeDecision.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/RealTimeDecision.kt index 98307d7c..5efc14b7 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/RealTimeDecision.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/RealTimeDecision.kt @@ -898,8 +898,7 @@ private constructor( merchantCategoryCode.getRequired("merchant_category_code") /** The city the merchant resides in. */ - fun merchantCity(): Optional = - Optional.ofNullable(merchantCity.getNullable("merchant_city")) + fun merchantCity(): String = merchantCity.getRequired("merchant_city") /** The country the merchant resides in. */ fun merchantCountry(): String = merchantCountry.getRequired("merchant_country") From 78864c36dc0b70d965f3d2bca6c9d4c43320cbbb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 06:34:36 +0000 Subject: [PATCH 2/2] release: 0.148.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 6 +++--- build.gradle.kts | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e205138b..2b1627bc 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.147.0" + ".": "0.148.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f56933d..c6749e69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.148.0 (2024-11-13) + +Full Changelog: [v0.147.0...v0.148.0](https://github.com/Increase/increase-java/compare/v0.147.0...v0.148.0) + +### Features + +* **api:** api update ([#611](https://github.com/Increase/increase-java/issues/611)) ([00aa6d8](https://github.com/Increase/increase-java/commit/00aa6d816e93d25184916b170a4ccda146a94d51)) + ## 0.147.0 (2024-11-13) Full Changelog: [v0.146.0...v0.147.0](https://github.com/Increase/increase-java/compare/v0.146.0...v0.147.0) diff --git a/README.md b/README.md index 088b6473..2cc7149c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ -[![Maven Central](https://img.shields.io/maven-central/v/com.increase.api/increase-java)](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.147.0) +[![Maven Central](https://img.shields.io/maven-central/v/com.increase.api/increase-java)](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.148.0) @@ -25,7 +25,7 @@ The REST API documentation can be foundĀ on [increase.com](https://increase.com/ ```kotlin -implementation("com.increase.api:increase-java:0.147.0") +implementation("com.increase.api:increase-java:0.148.0") ``` #### Maven @@ -34,7 +34,7 @@ implementation("com.increase.api:increase-java:0.147.0") com.increase.api increase-java - 0.147.0 + 0.148.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 61b0bcc6..c8e9c472 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ plugins { allprojects { group = "com.increase.api" - version = "0.147.0" // x-release-please-version + version = "0.148.0" // x-release-please-version } nexusPublishing {