From 919debd4d02f49fc18dedc04cdaadb392e39560c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 1 Aug 2025 16:17:40 +0000 Subject: [PATCH 1/3] feat(api): api update --- .stats.yml | 4 +- .../PhysicalCardProfileCloneParams.kt | 72 +++++++++++++++++-- .../PhysicalCardProfileCloneParamsTest.kt | 3 + .../PhysicalCardProfileServiceAsyncTest.kt | 1 + .../PhysicalCardProfileServiceTest.kt | 1 + 5 files changed, 75 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5ca6ef24d..9c25f999b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 202 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7676b5dbe8bdcdb0ffd762bb7faef842a7a005be8fe9b560f4c5317db2f0beba.yml -openapi_spec_hash: b61b1ed2f6851a2c1b249785439a946e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d7dabd389c8b061d384ec0a57cc7c8a426f12c87dabce0989af22a192a5fcfa9.yml +openapi_spec_hash: 35af34c9cffe387af0519e2df596d145 config_hash: a185e9a72778cc4658ea73fb3a7f1354 diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCloneParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCloneParams.kt index 17a1e9819..e3c15fe08 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCloneParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCloneParams.kt @@ -73,6 +73,14 @@ private constructor( */ fun frontText(): Optional = body.frontText() + /** + * The identifier of the Program to use for the cloned Physical Card Profile. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun programId(): Optional = body.programId() + /** * Returns the raw JSON value of [carrierImageFileId]. * @@ -110,6 +118,13 @@ private constructor( */ fun _frontText(): JsonField = body._frontText() + /** + * Returns the raw JSON value of [programId]. + * + * Unlike [programId], this method doesn't throw if the JSON field has an unexpected type. + */ + fun _programId(): JsonField = body._programId() + fun _additionalBodyProperties(): Map = body._additionalProperties() /** Additional headers to send with the request. */ @@ -246,6 +261,18 @@ private constructor( */ fun frontText(frontText: JsonField) = apply { body.frontText(frontText) } + /** The identifier of the Program to use for the cloned Physical Card Profile. */ + fun programId(programId: String) = apply { body.programId(programId) } + + /** + * Sets [Builder.programId] to an arbitrary JSON value. + * + * You should usually call [Builder.programId] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet supported + * value. + */ + fun programId(programId: JsonField) = apply { body.programId(programId) } + fun additionalBodyProperties(additionalBodyProperties: Map) = apply { body.additionalProperties(additionalBodyProperties) } @@ -396,6 +423,7 @@ private constructor( private val description: JsonField, private val frontImageFileId: JsonField, private val frontText: JsonField, + private val programId: JsonField, private val additionalProperties: MutableMap, ) { @@ -416,12 +444,16 @@ private constructor( @JsonProperty("front_text") @ExcludeMissing frontText: JsonField = JsonMissing.of(), + @JsonProperty("program_id") + @ExcludeMissing + programId: JsonField = JsonMissing.of(), ) : this( carrierImageFileId, contactPhone, description, frontImageFileId, frontText, + programId, mutableMapOf(), ) @@ -468,6 +500,14 @@ private constructor( */ fun frontText(): Optional = frontText.getOptional("front_text") + /** + * The identifier of the Program to use for the cloned Physical Card Profile. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if + * the server responded with an unexpected value). + */ + fun programId(): Optional = programId.getOptional("program_id") + /** * Returns the raw JSON value of [carrierImageFileId]. * @@ -516,6 +556,13 @@ private constructor( @ExcludeMissing fun _frontText(): JsonField = frontText + /** + * Returns the raw JSON value of [programId]. + * + * Unlike [programId], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("program_id") @ExcludeMissing fun _programId(): JsonField = programId + @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -542,6 +589,7 @@ private constructor( private var description: JsonField = JsonMissing.of() private var frontImageFileId: JsonField = JsonMissing.of() private var frontText: JsonField = JsonMissing.of() + private var programId: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic @@ -551,6 +599,7 @@ private constructor( description = body.description frontImageFileId = body.frontImageFileId frontText = body.frontText + programId = body.programId additionalProperties = body.additionalProperties.toMutableMap() } @@ -627,6 +676,18 @@ private constructor( */ fun frontText(frontText: JsonField) = apply { this.frontText = frontText } + /** The identifier of the Program to use for the cloned Physical Card Profile. */ + fun programId(programId: String) = programId(JsonField.of(programId)) + + /** + * Sets [Builder.programId] to an arbitrary JSON value. + * + * You should usually call [Builder.programId] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun programId(programId: JsonField) = apply { this.programId = programId } + fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -658,6 +719,7 @@ private constructor( description, frontImageFileId, frontText, + programId, additionalProperties.toMutableMap(), ) } @@ -674,6 +736,7 @@ private constructor( description() frontImageFileId() frontText().ifPresent { it.validate() } + programId() validated = true } @@ -697,24 +760,25 @@ private constructor( (if (contactPhone.asKnown().isPresent) 1 else 0) + (if (description.asKnown().isPresent) 1 else 0) + (if (frontImageFileId.asKnown().isPresent) 1 else 0) + - (frontText.asKnown().getOrNull()?.validity() ?: 0) + (frontText.asKnown().getOrNull()?.validity() ?: 0) + + (if (programId.asKnown().isPresent) 1 else 0) override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Body && carrierImageFileId == other.carrierImageFileId && contactPhone == other.contactPhone && description == other.description && frontImageFileId == other.frontImageFileId && frontText == other.frontText && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is Body && carrierImageFileId == other.carrierImageFileId && contactPhone == other.contactPhone && description == other.description && frontImageFileId == other.frontImageFileId && frontText == other.frontText && programId == other.programId && additionalProperties == other.additionalProperties /* spotless:on */ } /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(carrierImageFileId, contactPhone, description, frontImageFileId, frontText, additionalProperties) } + private val hashCode: Int by lazy { Objects.hash(carrierImageFileId, contactPhone, description, frontImageFileId, frontText, programId, additionalProperties) } /* spotless:on */ override fun hashCode(): Int = hashCode override fun toString() = - "Body{carrierImageFileId=$carrierImageFileId, contactPhone=$contactPhone, description=$description, frontImageFileId=$frontImageFileId, frontText=$frontText, additionalProperties=$additionalProperties}" + "Body{carrierImageFileId=$carrierImageFileId, contactPhone=$contactPhone, description=$description, frontImageFileId=$frontImageFileId, frontText=$frontText, programId=$programId, additionalProperties=$additionalProperties}" } /** diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCloneParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCloneParamsTest.kt index 4d904218a..a1d7a572c 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCloneParamsTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCloneParamsTest.kt @@ -18,6 +18,7 @@ internal class PhysicalCardProfileCloneParamsTest { .frontText( PhysicalCardProfileCloneParams.FrontText.builder().line1("x").line2("x").build() ) + .programId("program_id") .build() } @@ -45,6 +46,7 @@ internal class PhysicalCardProfileCloneParamsTest { .frontText( PhysicalCardProfileCloneParams.FrontText.builder().line1("x").line2("x").build() ) + .programId("program_id") .build() val body = params._body() @@ -57,6 +59,7 @@ internal class PhysicalCardProfileCloneParamsTest { .contains( PhysicalCardProfileCloneParams.FrontText.builder().line1("x").line2("x").build() ) + assertThat(body.programId()).contains("program_id") } @Test 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 4e223d25e..56233a018 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 @@ -112,6 +112,7 @@ internal class PhysicalCardProfileServiceAsyncTest { .line2("x") .build() ) + .programId("program_id") .build() ) 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 fcf6fc878..318ef8435 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 @@ -108,6 +108,7 @@ internal class PhysicalCardProfileServiceTest { .line2("x") .build() ) + .programId("program_id") .build() ) From 943ed5c93eaa93263f0ed6339622d002710069c7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 1 Aug 2025 16:38:31 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 +-- .../increase/api/models/entities/Entity.kt | 35 ++++++++++++++++--- .../api/models/entities/EntityCreateParams.kt | 35 ++++++++++++++++--- 3 files changed, 64 insertions(+), 10 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9c25f999b..00b0b5aa0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 202 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d7dabd389c8b061d384ec0a57cc7c8a426f12c87dabce0989af22a192a5fcfa9.yml -openapi_spec_hash: 35af34c9cffe387af0519e2df596d145 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5afe14a5606cebef2ccc6c4781d566b43509e01513e8e02e41adbdeaf3275f48.yml +openapi_spec_hash: 56857e37c0c6131096bf519d91ef76d2 config_hash: a185e9a72778cc4658ea73fb3a7f1354 diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/Entity.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/Entity.kt index 712b2dfa6..08845a2b0 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/Entity.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/Entity.kt @@ -4048,16 +4048,31 @@ private constructor( companion object { - /** The Public Entity is a Municipality. */ + /** A municipality. */ @JvmField val MUNICIPALITY = of("municipality") + /** A state agency. */ + @JvmField val STATE_AGENCY = of("state_agency") + + /** A state government. */ + @JvmField val STATE_GOVERNMENT = of("state_government") + + /** A federal agency. */ + @JvmField val FEDERAL_AGENCY = of("federal_agency") + @JvmStatic fun of(value: String) = Category(JsonField.of(value)) } /** An enum containing [Category]'s known values. */ enum class Known { - /** The Public Entity is a Municipality. */ - MUNICIPALITY + /** A municipality. */ + MUNICIPALITY, + /** A state agency. */ + STATE_AGENCY, + /** A state government. */ + STATE_GOVERNMENT, + /** A federal agency. */ + FEDERAL_AGENCY, } /** @@ -4070,8 +4085,14 @@ private constructor( * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { - /** The Public Entity is a Municipality. */ + /** A municipality. */ MUNICIPALITY, + /** A state agency. */ + STATE_AGENCY, + /** A state government. */ + STATE_GOVERNMENT, + /** A federal agency. */ + FEDERAL_AGENCY, /** * An enum member indicating that [Category] was instantiated with an unknown value. */ @@ -4088,6 +4109,9 @@ private constructor( fun value(): Value = when (this) { MUNICIPALITY -> Value.MUNICIPALITY + STATE_AGENCY -> Value.STATE_AGENCY + STATE_GOVERNMENT -> Value.STATE_GOVERNMENT + FEDERAL_AGENCY -> Value.FEDERAL_AGENCY else -> Value._UNKNOWN } @@ -4103,6 +4127,9 @@ private constructor( fun known(): Known = when (this) { MUNICIPALITY -> Known.MUNICIPALITY + STATE_AGENCY -> Known.STATE_AGENCY + STATE_GOVERNMENT -> Known.STATE_GOVERNMENT + FEDERAL_AGENCY -> Known.FEDERAL_AGENCY else -> throw IncreaseInvalidDataException("Unknown Category: $value") } diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt index fd693d921..57be047a6 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt @@ -5672,16 +5672,31 @@ private constructor( companion object { - /** The Public Entity is a Municipality. */ + /** A municipality. */ @JvmField val MUNICIPALITY = of("municipality") + /** A state agency. */ + @JvmField val STATE_AGENCY = of("state_agency") + + /** A state government. */ + @JvmField val STATE_GOVERNMENT = of("state_government") + + /** A federal agency. */ + @JvmField val FEDERAL_AGENCY = of("federal_agency") + @JvmStatic fun of(value: String) = Category(JsonField.of(value)) } /** An enum containing [Category]'s known values. */ enum class Known { - /** The Public Entity is a Municipality. */ - MUNICIPALITY + /** A municipality. */ + MUNICIPALITY, + /** A state agency. */ + STATE_AGENCY, + /** A state government. */ + STATE_GOVERNMENT, + /** A federal agency. */ + FEDERAL_AGENCY, } /** @@ -5694,8 +5709,14 @@ private constructor( * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { - /** The Public Entity is a Municipality. */ + /** A municipality. */ MUNICIPALITY, + /** A state agency. */ + STATE_AGENCY, + /** A state government. */ + STATE_GOVERNMENT, + /** A federal agency. */ + FEDERAL_AGENCY, /** * An enum member indicating that [Category] was instantiated with an unknown value. */ @@ -5712,6 +5733,9 @@ private constructor( fun value(): Value = when (this) { MUNICIPALITY -> Value.MUNICIPALITY + STATE_AGENCY -> Value.STATE_AGENCY + STATE_GOVERNMENT -> Value.STATE_GOVERNMENT + FEDERAL_AGENCY -> Value.FEDERAL_AGENCY else -> Value._UNKNOWN } @@ -5727,6 +5751,9 @@ private constructor( fun known(): Known = when (this) { MUNICIPALITY -> Known.MUNICIPALITY + STATE_AGENCY -> Known.STATE_AGENCY + STATE_GOVERNMENT -> Known.STATE_GOVERNMENT + FEDERAL_AGENCY -> Known.FEDERAL_AGENCY else -> throw IncreaseInvalidDataException("Unknown Category: $value") } From 58e2ac71ffc5457d2133c8ab02886a97411ca332 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 2 Aug 2025 03:55:50 +0000 Subject: [PATCH 3/3] release: 0.271.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ README.md | 10 +++++----- build.gradle.kts | 2 +- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 9114bb1ed..a5928db68 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.270.0" + ".": "0.271.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index d934df5de..94439d71e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.271.0 (2025-08-02) + +Full Changelog: [v0.270.0...v0.271.0](https://github.com/Increase/increase-java/compare/v0.270.0...v0.271.0) + +### Features + +* **api:** api update ([943ed5c](https://github.com/Increase/increase-java/commit/943ed5c93eaa93263f0ed6339622d002710069c7)) +* **api:** api update ([919debd](https://github.com/Increase/increase-java/commit/919debd4d02f49fc18dedc04cdaadb392e39560c)) + ## 0.270.0 (2025-08-01) Full Changelog: [v0.269.1...v0.270.0](https://github.com/Increase/increase-java/compare/v0.269.1...v0.270.0) diff --git a/README.md b/README.md index f7dba8a6e..fcaf602b6 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.270.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.270.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.270.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.271.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.271.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.271.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.270.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.271.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.270.0") +implementation("com.increase.api:increase-java:0.271.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.270.0") com.increase.api increase-java - 0.270.0 + 0.271.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 2e5353064..848829797 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.270.0" // x-release-please-version + version = "0.271.0" // x-release-please-version } subprojects {