diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1cc6e56cc..422745047 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.311.1" + ".": "0.312.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index a123afd0f..4046227bc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 216 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-4951789bd74367647a7109ac527206883115628aac13b8131b0bc046ead9cc5c.yml -openapi_spec_hash: 924a557a551c40624e4fe4703dec71cc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fbdfb5721d0c46a176ee6d81936d2710556c39cc486c5de246cc17b0503ee408.yml +openapi_spec_hash: 66c900a94b458e5b796ac1d2a5fceb13 config_hash: 632b628b59d8f0b717153b3d8133f6cb diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f9c42e36..16f101cd2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.312.0 (2025-09-04) + +Full Changelog: [v0.311.1...v0.312.0](https://github.com/Increase/increase-java/compare/v0.311.1...v0.312.0) + +### Features + +* **api:** api update ([bcf7b63](https://github.com/Increase/increase-java/commit/bcf7b63d51c29f329956b4fbbf5e9a1433e72af0)) + ## 0.311.1 (2025-09-03) Full Changelog: [v0.311.0...v0.311.1](https://github.com/Increase/increase-java/compare/v0.311.0...v0.311.1) diff --git a/README.md b/README.md index 42c447cde..2c7f6b16d 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.311.1) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.311.1/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.311.1) +[![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.312.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.312.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.312.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.311.1). +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.312.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.311.1") +implementation("com.increase.api:increase-java:0.312.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.311.1") com.increase.api increase-java - 0.311.1 + 0.312.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index fd479c30d..5f61c0a2c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.311.1" // x-release-please-version + version = "0.312.0" // x-release-please-version } subprojects { diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParams.kt index 49095fa4b..1cc4f159c 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParams.kt @@ -68,6 +68,24 @@ private constructor( */ fun programId(): String = body.programId() + /** + * A reference ID provided by the fulfillment provider for the card stock used. Only used if + * you've ordered card stock separately. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun cardStockReference(): Optional = body.cardStockReference() + + /** + * A reference ID provided by the fulfillment provider for the carrier stock used. Only used if + * you've ordered carrier stock separately. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun carrierStockReference(): Optional = body.carrierStockReference() + /** * Text printed on the front of the card. Reach out to * [support@increase.com](mailto:support@increase.com) for more information. @@ -114,6 +132,22 @@ private constructor( */ fun _programId(): JsonField = body._programId() + /** + * Returns the raw JSON value of [cardStockReference]. + * + * Unlike [cardStockReference], this method doesn't throw if the JSON field has an unexpected + * type. + */ + fun _cardStockReference(): JsonField = body._cardStockReference() + + /** + * Returns the raw JSON value of [carrierStockReference]. + * + * Unlike [carrierStockReference], this method doesn't throw if the JSON field has an unexpected + * type. + */ + fun _carrierStockReference(): JsonField = body._carrierStockReference() + /** * Returns the raw JSON value of [frontText]. * @@ -249,6 +283,44 @@ private constructor( */ fun programId(programId: JsonField) = apply { body.programId(programId) } + /** + * A reference ID provided by the fulfillment provider for the card stock used. Only used if + * you've ordered card stock separately. + */ + fun cardStockReference(cardStockReference: String) = apply { + body.cardStockReference(cardStockReference) + } + + /** + * Sets [Builder.cardStockReference] to an arbitrary JSON value. + * + * You should usually call [Builder.cardStockReference] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun cardStockReference(cardStockReference: JsonField) = apply { + body.cardStockReference(cardStockReference) + } + + /** + * A reference ID provided by the fulfillment provider for the carrier stock used. Only used + * if you've ordered carrier stock separately. + */ + fun carrierStockReference(carrierStockReference: String) = apply { + body.carrierStockReference(carrierStockReference) + } + + /** + * Sets [Builder.carrierStockReference] to an arbitrary JSON value. + * + * You should usually call [Builder.carrierStockReference] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun carrierStockReference(carrierStockReference: JsonField) = apply { + body.carrierStockReference(carrierStockReference) + } + /** * Text printed on the front of the card. Reach out to * [support@increase.com](mailto:support@increase.com) for more information. @@ -418,6 +490,8 @@ private constructor( private val description: JsonField, private val frontImageFileId: JsonField, private val programId: JsonField, + private val cardStockReference: JsonField, + private val carrierStockReference: JsonField, private val frontText: JsonField, private val additionalProperties: MutableMap, ) { @@ -439,6 +513,12 @@ private constructor( @JsonProperty("program_id") @ExcludeMissing programId: JsonField = JsonMissing.of(), + @JsonProperty("card_stock_reference") + @ExcludeMissing + cardStockReference: JsonField = JsonMissing.of(), + @JsonProperty("carrier_stock_reference") + @ExcludeMissing + carrierStockReference: JsonField = JsonMissing.of(), @JsonProperty("front_text") @ExcludeMissing frontText: JsonField = JsonMissing.of(), @@ -448,6 +528,8 @@ private constructor( description, frontImageFileId, programId, + cardStockReference, + carrierStockReference, frontText, mutableMapOf(), ) @@ -492,6 +574,26 @@ private constructor( */ fun programId(): String = programId.getRequired("program_id") + /** + * A reference ID provided by the fulfillment provider for the card stock used. Only used if + * you've ordered card stock separately. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if + * the server responded with an unexpected value). + */ + fun cardStockReference(): Optional = + cardStockReference.getOptional("card_stock_reference") + + /** + * A reference ID provided by the fulfillment provider for the carrier stock used. Only used + * if you've ordered carrier stock separately. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if + * the server responded with an unexpected value). + */ + fun carrierStockReference(): Optional = + carrierStockReference.getOptional("carrier_stock_reference") + /** * Text printed on the front of the card. Reach out to * [support@increase.com](mailto:support@increase.com) for more information. @@ -547,6 +649,26 @@ private constructor( */ @JsonProperty("program_id") @ExcludeMissing fun _programId(): JsonField = programId + /** + * Returns the raw JSON value of [cardStockReference]. + * + * Unlike [cardStockReference], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("card_stock_reference") + @ExcludeMissing + fun _cardStockReference(): JsonField = cardStockReference + + /** + * Returns the raw JSON value of [carrierStockReference]. + * + * Unlike [carrierStockReference], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("carrier_stock_reference") + @ExcludeMissing + fun _carrierStockReference(): JsonField = carrierStockReference + /** * Returns the raw JSON value of [frontText]. * @@ -593,6 +715,8 @@ private constructor( private var description: JsonField? = null private var frontImageFileId: JsonField? = null private var programId: JsonField? = null + private var cardStockReference: JsonField = JsonMissing.of() + private var carrierStockReference: JsonField = JsonMissing.of() private var frontText: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @@ -603,6 +727,8 @@ private constructor( description = body.description frontImageFileId = body.frontImageFileId programId = body.programId + cardStockReference = body.cardStockReference + carrierStockReference = body.carrierStockReference frontText = body.frontText additionalProperties = body.additionalProperties.toMutableMap() } @@ -677,6 +803,42 @@ private constructor( */ fun programId(programId: JsonField) = apply { this.programId = programId } + /** + * A reference ID provided by the fulfillment provider for the card stock used. Only + * used if you've ordered card stock separately. + */ + fun cardStockReference(cardStockReference: String) = + cardStockReference(JsonField.of(cardStockReference)) + + /** + * Sets [Builder.cardStockReference] to an arbitrary JSON value. + * + * You should usually call [Builder.cardStockReference] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun cardStockReference(cardStockReference: JsonField) = apply { + this.cardStockReference = cardStockReference + } + + /** + * A reference ID provided by the fulfillment provider for the carrier stock used. Only + * used if you've ordered carrier stock separately. + */ + fun carrierStockReference(carrierStockReference: String) = + carrierStockReference(JsonField.of(carrierStockReference)) + + /** + * Sets [Builder.carrierStockReference] to an arbitrary JSON value. + * + * You should usually call [Builder.carrierStockReference] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented or + * not yet supported value. + */ + fun carrierStockReference(carrierStockReference: JsonField) = apply { + this.carrierStockReference = carrierStockReference + } + /** * Text printed on the front of the card. Reach out to * [support@increase.com](mailto:support@increase.com) for more information. @@ -734,6 +896,8 @@ private constructor( checkRequired("description", description), checkRequired("frontImageFileId", frontImageFileId), checkRequired("programId", programId), + cardStockReference, + carrierStockReference, frontText, additionalProperties.toMutableMap(), ) @@ -751,6 +915,8 @@ private constructor( description() frontImageFileId() programId() + cardStockReference() + carrierStockReference() frontText().ifPresent { it.validate() } validated = true } @@ -776,6 +942,8 @@ private constructor( (if (description.asKnown().isPresent) 1 else 0) + (if (frontImageFileId.asKnown().isPresent) 1 else 0) + (if (programId.asKnown().isPresent) 1 else 0) + + (if (cardStockReference.asKnown().isPresent) 1 else 0) + + (if (carrierStockReference.asKnown().isPresent) 1 else 0) + (frontText.asKnown().getOrNull()?.validity() ?: 0) override fun equals(other: Any?): Boolean { @@ -789,6 +957,8 @@ private constructor( description == other.description && frontImageFileId == other.frontImageFileId && programId == other.programId && + cardStockReference == other.cardStockReference && + carrierStockReference == other.carrierStockReference && frontText == other.frontText && additionalProperties == other.additionalProperties } @@ -800,6 +970,8 @@ private constructor( description, frontImageFileId, programId, + cardStockReference, + carrierStockReference, frontText, additionalProperties, ) @@ -808,7 +980,7 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "Body{carrierImageFileId=$carrierImageFileId, contactPhone=$contactPhone, description=$description, frontImageFileId=$frontImageFileId, programId=$programId, frontText=$frontText, additionalProperties=$additionalProperties}" + "Body{carrierImageFileId=$carrierImageFileId, contactPhone=$contactPhone, description=$description, frontImageFileId=$frontImageFileId, programId=$programId, cardStockReference=$cardStockReference, carrierStockReference=$carrierStockReference, frontText=$frontText, additionalProperties=$additionalProperties}" } /** diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParamsTest.kt index b758a5dbc..7d1ba2ff2 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParamsTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParamsTest.kt @@ -15,6 +15,8 @@ internal class PhysicalCardProfileCreateParamsTest { .description("My Card Profile") .frontImageFileId("file_o6aex13wm1jcc36sgcj1") .programId("program_i2v2os4mwza1oetokh9i") + .cardStockReference("x") + .carrierStockReference("x") .frontText( PhysicalCardProfileCreateParams.FrontText.builder().line1("x").line2("x").build() ) @@ -30,6 +32,8 @@ internal class PhysicalCardProfileCreateParamsTest { .description("My Card Profile") .frontImageFileId("file_o6aex13wm1jcc36sgcj1") .programId("program_i2v2os4mwza1oetokh9i") + .cardStockReference("x") + .carrierStockReference("x") .frontText( PhysicalCardProfileCreateParams.FrontText.builder() .line1("x") @@ -45,6 +49,8 @@ internal class PhysicalCardProfileCreateParamsTest { assertThat(body.description()).isEqualTo("My Card Profile") assertThat(body.frontImageFileId()).isEqualTo("file_o6aex13wm1jcc36sgcj1") assertThat(body.programId()).isEqualTo("program_i2v2os4mwza1oetokh9i") + assertThat(body.cardStockReference()).contains("x") + assertThat(body.carrierStockReference()).contains("x") assertThat(body.frontText()) .contains( PhysicalCardProfileCreateParams.FrontText.builder().line1("x").line2("x").build() diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/async/PhysicalCardProfileServiceAsyncTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/async/PhysicalCardProfileServiceAsyncTest.kt index 56233a018..390d2a46c 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/services/async/PhysicalCardProfileServiceAsyncTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/services/async/PhysicalCardProfileServiceAsyncTest.kt @@ -29,6 +29,8 @@ internal class PhysicalCardProfileServiceAsyncTest { .description("My Card Profile") .frontImageFileId("file_o6aex13wm1jcc36sgcj1") .programId("program_i2v2os4mwza1oetokh9i") + .cardStockReference("x") + .carrierStockReference("x") .frontText( PhysicalCardProfileCreateParams.FrontText.builder() .line1("x") diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/PhysicalCardProfileServiceTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/PhysicalCardProfileServiceTest.kt index 318ef8435..6d120f2cf 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/PhysicalCardProfileServiceTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/PhysicalCardProfileServiceTest.kt @@ -29,6 +29,8 @@ internal class PhysicalCardProfileServiceTest { .description("My Card Profile") .frontImageFileId("file_o6aex13wm1jcc36sgcj1") .programId("program_i2v2os4mwza1oetokh9i") + .cardStockReference("x") + .carrierStockReference("x") .frontText( PhysicalCardProfileCreateParams.FrontText.builder() .line1("x")