diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a45036ef6..7fba3a9a3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.456.0" + ".": "0.457.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index e4ce02b9a..b00a35aad 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 234 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-dd0c83cac837fbe98857fa997663b0d0469344a7564bd4fe506e6c71d1d6af73.yml -openapi_spec_hash: 2352f37602105b164533038199b21804 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6157ec57275bc58dca42adf9d0b661f6dcfd725df7593dc453833dfcdcf33a8b.yml +openapi_spec_hash: 0a80ae7882f3d72a333b80efe58ff5ea config_hash: b7ec7f54fa76c1f8bde7a548710a1d38 diff --git a/CHANGELOG.md b/CHANGELOG.md index c98a1d75a..fbd2f0615 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.457.0 (2026-03-09) + +Full Changelog: [v0.456.0...v0.457.0](https://github.com/Increase/increase-java/compare/v0.456.0...v0.457.0) + +### Features + +* **api:** api update ([04e6496](https://github.com/Increase/increase-java/commit/04e64964c5c7d60125a35c7f490699d2c0cd9f11)) + ## 0.456.0 (2026-03-08) Full Changelog: [v0.455.0...v0.456.0](https://github.com/Increase/increase-java/compare/v0.455.0...v0.456.0) diff --git a/README.md b/README.md index 05cca19a2..d86101519 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ -[![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.456.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.456.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.456.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.457.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.457.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.457.0) @@ -13,7 +13,7 @@ The Increase Java SDK is similar to the Increase Kotlin SDK but with minor diffe -The REST API documentation can be found on [increase.com](https://increase.com/documentation). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.increase.api/increase-java/0.456.0). +The REST API documentation can be found on [increase.com](https://increase.com/documentation). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.increase.api/increase-java/0.457.0). @@ -24,7 +24,7 @@ The REST API documentation can be found on [increase.com](https://increase.com/d ### Gradle ```kotlin -implementation("com.increase.api:increase-java:0.456.0") +implementation("com.increase.api:increase-java:0.457.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.456.0") com.increase.api increase-java - 0.456.0 + 0.457.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 30fcbf773..939f42bd0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.456.0" // x-release-please-version + version = "0.457.0" // x-release-please-version } subprojects { diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/cardpayments/CardPayment.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/cardpayments/CardPayment.kt index 1e25799b9..f48aa4001 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/cardpayments/CardPayment.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/cardpayments/CardPayment.kt @@ -2158,41 +2158,38 @@ private constructor( * The merchant identifier (commonly abbreviated as MID) of the merchant the card is * transacting with. * - * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is - * unexpectedly missing or null (e.g. if the server responded with an unexpected - * value). + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). */ - fun merchantAcceptorId(): String = - merchantAcceptorId.getRequired("merchant_acceptor_id") + fun merchantAcceptorId(): Optional = + merchantAcceptorId.getOptional("merchant_acceptor_id") /** * The Merchant Category Code (commonly abbreviated as MCC) of the merchant the card is * transacting with. * - * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is - * unexpectedly missing or null (e.g. if the server responded with an unexpected - * value). + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). */ - fun merchantCategoryCode(): String = - merchantCategoryCode.getRequired("merchant_category_code") + fun merchantCategoryCode(): Optional = + merchantCategoryCode.getOptional("merchant_category_code") /** * The country the merchant resides in. * - * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is - * unexpectedly missing or null (e.g. if the server responded with an unexpected - * value). + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). */ - fun merchantCountry(): String = merchantCountry.getRequired("merchant_country") + fun merchantCountry(): Optional = + merchantCountry.getOptional("merchant_country") /** * The name of the merchant. * - * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is - * unexpectedly missing or null (e.g. if the server responded with an unexpected - * value). + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). */ - fun merchantName(): String = merchantName.getRequired("merchant_name") + fun merchantName(): Optional = merchantName.getOptional("merchant_name") /** * The ID of a prior Card Authentication that the requestor used to authenticate this @@ -3358,8 +3355,15 @@ private constructor( * The merchant identifier (commonly abbreviated as MID) of the merchant the card is * transacting with. */ - fun merchantAcceptorId(merchantAcceptorId: String) = - merchantAcceptorId(JsonField.of(merchantAcceptorId)) + fun merchantAcceptorId(merchantAcceptorId: String?) = + merchantAcceptorId(JsonField.ofNullable(merchantAcceptorId)) + + /** + * Alias for calling [Builder.merchantAcceptorId] with + * `merchantAcceptorId.orElse(null)`. + */ + fun merchantAcceptorId(merchantAcceptorId: Optional) = + merchantAcceptorId(merchantAcceptorId.getOrNull()) /** * Sets [Builder.merchantAcceptorId] to an arbitrary JSON value. @@ -3376,8 +3380,15 @@ private constructor( * The Merchant Category Code (commonly abbreviated as MCC) of the merchant the card * is transacting with. */ - fun merchantCategoryCode(merchantCategoryCode: String) = - merchantCategoryCode(JsonField.of(merchantCategoryCode)) + fun merchantCategoryCode(merchantCategoryCode: String?) = + merchantCategoryCode(JsonField.ofNullable(merchantCategoryCode)) + + /** + * Alias for calling [Builder.merchantCategoryCode] with + * `merchantCategoryCode.orElse(null)`. + */ + fun merchantCategoryCode(merchantCategoryCode: Optional) = + merchantCategoryCode(merchantCategoryCode.getOrNull()) /** * Sets [Builder.merchantCategoryCode] to an arbitrary JSON value. @@ -3391,8 +3402,14 @@ private constructor( } /** The country the merchant resides in. */ - fun merchantCountry(merchantCountry: String) = - merchantCountry(JsonField.of(merchantCountry)) + fun merchantCountry(merchantCountry: String?) = + merchantCountry(JsonField.ofNullable(merchantCountry)) + + /** + * Alias for calling [Builder.merchantCountry] with `merchantCountry.orElse(null)`. + */ + fun merchantCountry(merchantCountry: Optional) = + merchantCountry(merchantCountry.getOrNull()) /** * Sets [Builder.merchantCountry] to an arbitrary JSON value. @@ -3406,7 +3423,12 @@ private constructor( } /** The name of the merchant. */ - fun merchantName(merchantName: String) = merchantName(JsonField.of(merchantName)) + fun merchantName(merchantName: String?) = + merchantName(JsonField.ofNullable(merchantName)) + + /** Alias for calling [Builder.merchantName] with `merchantName.orElse(null)`. */ + fun merchantName(merchantName: Optional) = + merchantName(merchantName.getOrNull()) /** * Sets [Builder.merchantName] to an arbitrary JSON value. diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/realtimedecisions/RealTimeDecision.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/realtimedecisions/RealTimeDecision.kt index aa4dc349b..40ed19210 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/realtimedecisions/RealTimeDecision.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/realtimedecisions/RealTimeDecision.kt @@ -1038,36 +1038,37 @@ private constructor( * The merchant identifier (commonly abbreviated as MID) of the merchant the card is * transacting with. * - * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is - * unexpectedly missing or null (e.g. if the server responded with an unexpected value). + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if + * the server responded with an unexpected value). */ - fun merchantAcceptorId(): String = merchantAcceptorId.getRequired("merchant_acceptor_id") + fun merchantAcceptorId(): Optional = + merchantAcceptorId.getOptional("merchant_acceptor_id") /** * The Merchant Category Code (commonly abbreviated as MCC) of the merchant the card is * transacting with. * - * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is - * unexpectedly missing or null (e.g. if the server responded with an unexpected value). + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if + * the server responded with an unexpected value). */ - fun merchantCategoryCode(): String = - merchantCategoryCode.getRequired("merchant_category_code") + fun merchantCategoryCode(): Optional = + merchantCategoryCode.getOptional("merchant_category_code") /** * The country the merchant resides in. * - * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is - * unexpectedly missing or null (e.g. if the server responded with an unexpected value). + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if + * the server responded with an unexpected value). */ - fun merchantCountry(): String = merchantCountry.getRequired("merchant_country") + fun merchantCountry(): Optional = merchantCountry.getOptional("merchant_country") /** * The name of the merchant. * - * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is - * unexpectedly missing or null (e.g. if the server responded with an unexpected value). + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if + * the server responded with an unexpected value). */ - fun merchantName(): String = merchantName.getRequired("merchant_name") + fun merchantName(): Optional = merchantName.getOptional("merchant_name") /** * The ID of a prior Card Authentication that the requestor used to authenticate this @@ -2080,8 +2081,15 @@ private constructor( * The merchant identifier (commonly abbreviated as MID) of the merchant the card is * transacting with. */ - fun merchantAcceptorId(merchantAcceptorId: String) = - merchantAcceptorId(JsonField.of(merchantAcceptorId)) + fun merchantAcceptorId(merchantAcceptorId: String?) = + merchantAcceptorId(JsonField.ofNullable(merchantAcceptorId)) + + /** + * Alias for calling [Builder.merchantAcceptorId] with + * `merchantAcceptorId.orElse(null)`. + */ + fun merchantAcceptorId(merchantAcceptorId: Optional) = + merchantAcceptorId(merchantAcceptorId.getOrNull()) /** * Sets [Builder.merchantAcceptorId] to an arbitrary JSON value. @@ -2098,8 +2106,15 @@ private constructor( * The Merchant Category Code (commonly abbreviated as MCC) of the merchant the card is * transacting with. */ - fun merchantCategoryCode(merchantCategoryCode: String) = - merchantCategoryCode(JsonField.of(merchantCategoryCode)) + fun merchantCategoryCode(merchantCategoryCode: String?) = + merchantCategoryCode(JsonField.ofNullable(merchantCategoryCode)) + + /** + * Alias for calling [Builder.merchantCategoryCode] with + * `merchantCategoryCode.orElse(null)`. + */ + fun merchantCategoryCode(merchantCategoryCode: Optional) = + merchantCategoryCode(merchantCategoryCode.getOrNull()) /** * Sets [Builder.merchantCategoryCode] to an arbitrary JSON value. @@ -2113,8 +2128,12 @@ private constructor( } /** The country the merchant resides in. */ - fun merchantCountry(merchantCountry: String) = - merchantCountry(JsonField.of(merchantCountry)) + fun merchantCountry(merchantCountry: String?) = + merchantCountry(JsonField.ofNullable(merchantCountry)) + + /** Alias for calling [Builder.merchantCountry] with `merchantCountry.orElse(null)`. */ + fun merchantCountry(merchantCountry: Optional) = + merchantCountry(merchantCountry.getOrNull()) /** * Sets [Builder.merchantCountry] to an arbitrary JSON value. @@ -2128,7 +2147,12 @@ private constructor( } /** The name of the merchant. */ - fun merchantName(merchantName: String) = merchantName(JsonField.of(merchantName)) + fun merchantName(merchantName: String?) = + merchantName(JsonField.ofNullable(merchantName)) + + /** Alias for calling [Builder.merchantName] with `merchantName.orElse(null)`. */ + fun merchantName(merchantName: Optional) = + merchantName(merchantName.getOrNull()) /** * Sets [Builder.merchantName] to an arbitrary JSON value.