Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.520.0"
".": "0.521.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<!-- x-release-please-start-version -->

[![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.520.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.520.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.520.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.521.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.521.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.521.0)

<!-- x-release-please-end -->

Expand All @@ -13,7 +13,7 @@ The Increase Java SDK is similar to the Increase Kotlin SDK but with minor diffe

<!-- x-release-please-start-version -->

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).

<!-- x-release-please-end -->

Expand All @@ -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
Expand All @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.520.0")
<dependency>
<groupId>com.increase.api</groupId>
<artifactId>increase-java</artifactId>
<version>0.520.0</version>
<version>0.521.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5296,6 +5296,7 @@ private constructor(
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val category: JsonField<Category>,
private val country: JsonField<String>,
private val createdAt: JsonField<OffsetDateTime>,
private val postalCode: JsonField<String>,
private val additionalProperties: MutableMap<String, JsonValue>,
Expand All @@ -5306,13 +5307,16 @@ private constructor(
@JsonProperty("category")
@ExcludeMissing
category: JsonField<Category> = JsonMissing.of(),
@JsonProperty("country")
@ExcludeMissing
country: JsonField<String> = JsonMissing.of(),
@JsonProperty("created_at")
@ExcludeMissing
createdAt: JsonField<OffsetDateTime> = JsonMissing.of(),
@JsonProperty("postal_code")
@ExcludeMissing
postalCode: JsonField<String> = JsonMissing.of(),
) : this(category, createdAt, postalCode, mutableMapOf())
) : this(category, country, createdAt, postalCode, mutableMapOf())

/**
* The type of tracking event.
Expand All @@ -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.
Expand Down Expand Up @@ -5352,6 +5365,13 @@ private constructor(
@ExcludeMissing
fun _category(): JsonField<Category> = 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<String> = country

/**
* Returns the raw JSON value of [createdAt].
*
Expand Down Expand Up @@ -5392,6 +5412,7 @@ private constructor(
* The following fields are required:
* ```java
* .category()
* .country()
* .createdAt()
* .postalCode()
* ```
Expand All @@ -5403,13 +5424,15 @@ private constructor(
class Builder internal constructor() {

private var category: JsonField<Category>? = null
private var country: JsonField<String>? = null
private var createdAt: JsonField<OffsetDateTime>? = null
private var postalCode: JsonField<String>? = null
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(trackingUpdate: TrackingUpdate) = apply {
category = trackingUpdate.category
country = trackingUpdate.country
createdAt = trackingUpdate.createdAt
postalCode = trackingUpdate.postalCode
additionalProperties = trackingUpdate.additionalProperties.toMutableMap()
Expand All @@ -5427,6 +5450,20 @@ private constructor(
*/
fun category(category: JsonField<Category>) = 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<String>) = apply { this.country = country }

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
* tracking event took place.
Expand Down Expand Up @@ -5488,6 +5525,7 @@ private constructor(
* The following fields are required:
* ```java
* .category()
* .country()
* .createdAt()
* .postalCode()
* ```
Expand All @@ -5497,6 +5535,7 @@ private constructor(
fun build(): TrackingUpdate =
TrackingUpdate(
checkRequired("category", category),
checkRequired("country", country),
checkRequired("createdAt", createdAt),
checkRequired("postalCode", postalCode),
additionalProperties.toMutableMap(),
Expand All @@ -5511,6 +5550,7 @@ private constructor(
}

category().validate()
country()
createdAt()
postalCode()
validated = true
Expand All @@ -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)

Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down
Loading