diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 31f723a8c..47ff3fbc0 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.520.0"
+ ".": "0.521.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 049a84e12..07f7fc021 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 241
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f71dad85b4d794d6e64d04e2cecedb5b531d945f06e36222512527b47dc7e492.yml
-openapi_spec_hash: 71b8b72da97dfcd792e5ab4acb8ad26d
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-aec0771e5d68377a9a6c78d552a4617290beabcb5efb2e895b18f70bde573115.yml
+openapi_spec_hash: 3da305207c91d4ade84d70fd64691c88
config_hash: cb5b8736705c06b670f6a25484622d62
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a7b6612aa..c94de4468 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 0.521.0 (2026-04-17)
+
+Full Changelog: [v0.520.0...v0.521.0](https://github.com/Increase/increase-java/compare/v0.520.0...v0.521.0)
+
+### Features
+
+* **api:** api update ([8473eed](https://github.com/Increase/increase-java/commit/8473eed9cb803f2d2c66da3cdf1c9a829a969f16))
+
## 0.520.0 (2026-04-17)
Full Changelog: [v0.519.0...v0.520.0](https://github.com/Increase/increase-java/compare/v0.519.0...v0.520.0)
diff --git a/README.md b/README.md
index ce7035649..4158a7312 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.520.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.520.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.521.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.521.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.520.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.521.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.520.0")
+implementation("com.increase.api:increase-java:0.521.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.520.0")
com.increase.api
increase-java
- 0.520.0
+ 0.521.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index c83d96e50..16dad00ca 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.520.0" // x-release-please-version
+ version = "0.521.0" // x-release-please-version
}
subprojects {
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransfer.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransfer.kt
index 3caf3fc9e..5d6cacbb1 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransfer.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransfer.kt
@@ -5296,6 +5296,7 @@ private constructor(
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val category: JsonField,
+ private val country: JsonField,
private val createdAt: JsonField,
private val postalCode: JsonField,
private val additionalProperties: MutableMap,
@@ -5306,13 +5307,16 @@ private constructor(
@JsonProperty("category")
@ExcludeMissing
category: JsonField = JsonMissing.of(),
+ @JsonProperty("country")
+ @ExcludeMissing
+ country: JsonField = JsonMissing.of(),
@JsonProperty("created_at")
@ExcludeMissing
createdAt: JsonField = JsonMissing.of(),
@JsonProperty("postal_code")
@ExcludeMissing
postalCode: JsonField = JsonMissing.of(),
- ) : this(category, createdAt, postalCode, mutableMapOf())
+ ) : this(category, country, createdAt, postalCode, mutableMapOf())
/**
* The type of tracking event.
@@ -5323,6 +5327,15 @@ private constructor(
*/
fun category(): Category = category.getRequired("category")
+ /**
+ * The ISO 3166-1 alpha-2 country code for the country where the event took place.
+ *
+ * @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).
+ */
+ fun country(): String = country.getRequired("country")
+
/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
* tracking event took place.
@@ -5352,6 +5365,13 @@ private constructor(
@ExcludeMissing
fun _category(): JsonField = category
+ /**
+ * Returns the raw JSON value of [country].
+ *
+ * Unlike [country], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("country") @ExcludeMissing fun _country(): JsonField = country
+
/**
* Returns the raw JSON value of [createdAt].
*
@@ -5392,6 +5412,7 @@ private constructor(
* The following fields are required:
* ```java
* .category()
+ * .country()
* .createdAt()
* .postalCode()
* ```
@@ -5403,6 +5424,7 @@ private constructor(
class Builder internal constructor() {
private var category: JsonField? = null
+ private var country: JsonField? = null
private var createdAt: JsonField? = null
private var postalCode: JsonField? = null
private var additionalProperties: MutableMap = mutableMapOf()
@@ -5410,6 +5432,7 @@ private constructor(
@JvmSynthetic
internal fun from(trackingUpdate: TrackingUpdate) = apply {
category = trackingUpdate.category
+ country = trackingUpdate.country
createdAt = trackingUpdate.createdAt
postalCode = trackingUpdate.postalCode
additionalProperties = trackingUpdate.additionalProperties.toMutableMap()
@@ -5427,6 +5450,20 @@ private constructor(
*/
fun category(category: JsonField) = apply { this.category = category }
+ /**
+ * The ISO 3166-1 alpha-2 country code for the country where the event took place.
+ */
+ fun country(country: String) = country(JsonField.of(country))
+
+ /**
+ * Sets [Builder.country] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.country] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not
+ * yet supported value.
+ */
+ fun country(country: JsonField) = apply { this.country = country }
+
/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
* tracking event took place.
@@ -5488,6 +5525,7 @@ private constructor(
* The following fields are required:
* ```java
* .category()
+ * .country()
* .createdAt()
* .postalCode()
* ```
@@ -5497,6 +5535,7 @@ private constructor(
fun build(): TrackingUpdate =
TrackingUpdate(
checkRequired("category", category),
+ checkRequired("country", country),
checkRequired("createdAt", createdAt),
checkRequired("postalCode", postalCode),
additionalProperties.toMutableMap(),
@@ -5511,6 +5550,7 @@ private constructor(
}
category().validate()
+ country()
createdAt()
postalCode()
validated = true
@@ -5533,6 +5573,7 @@ private constructor(
@JvmSynthetic
internal fun validity(): Int =
(category.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (country.asKnown().isPresent) 1 else 0) +
(if (createdAt.asKnown().isPresent) 1 else 0) +
(if (postalCode.asKnown().isPresent) 1 else 0)
@@ -5720,19 +5761,20 @@ private constructor(
return other is TrackingUpdate &&
category == other.category &&
+ country == other.country &&
createdAt == other.createdAt &&
postalCode == other.postalCode &&
additionalProperties == other.additionalProperties
}
private val hashCode: Int by lazy {
- Objects.hash(category, createdAt, postalCode, additionalProperties)
+ Objects.hash(category, country, createdAt, postalCode, additionalProperties)
}
override fun hashCode(): Int = hashCode
override fun toString() =
- "TrackingUpdate{category=$category, createdAt=$createdAt, postalCode=$postalCode, additionalProperties=$additionalProperties}"
+ "TrackingUpdate{category=$category, country=$country, createdAt=$createdAt, postalCode=$postalCode, additionalProperties=$additionalProperties}"
}
override fun equals(other: Any?): Boolean {
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferListPageResponseTest.kt
index 475e36872..983f72f21 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferListPageResponseTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferListPageResponseTest.kt
@@ -120,6 +120,7 @@ internal class CheckTransferListPageResponseTest {
CheckTransfer.PhysicalCheck.TrackingUpdate.Category
.IN_TRANSIT
)
+ .country("country")
.createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.postalCode("postal_code")
.build()
@@ -278,6 +279,7 @@ internal class CheckTransferListPageResponseTest {
CheckTransfer.PhysicalCheck.TrackingUpdate.Category
.IN_TRANSIT
)
+ .country("country")
.createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.postalCode("postal_code")
.build()
@@ -436,6 +438,7 @@ internal class CheckTransferListPageResponseTest {
CheckTransfer.PhysicalCheck.TrackingUpdate.Category
.IN_TRANSIT
)
+ .country("country")
.createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.postalCode("postal_code")
.build()
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferTest.kt
index 6012ec011..71e8c7b0a 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferTest.kt
@@ -113,6 +113,7 @@ internal class CheckTransferTest {
.category(
CheckTransfer.PhysicalCheck.TrackingUpdate.Category.IN_TRANSIT
)
+ .country("country")
.createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.postalCode("postal_code")
.build()
@@ -261,6 +262,7 @@ internal class CheckTransferTest {
.category(
CheckTransfer.PhysicalCheck.TrackingUpdate.Category.IN_TRANSIT
)
+ .country("country")
.createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.postalCode("postal_code")
.build()
@@ -408,6 +410,7 @@ internal class CheckTransferTest {
.category(
CheckTransfer.PhysicalCheck.TrackingUpdate.Category.IN_TRANSIT
)
+ .country("country")
.createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.postalCode("postal_code")
.build()