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.379.0"
".": "0.380.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: 230
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6b5ac6804e3261a05214c5891c95222ef1b5e9003f211ab32db1d03a7531835a.yml
openapi_spec_hash: 611c8d38ba7122a428f57f3069aac84a
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e2b7de6202d48efc0e77fd72d2788987e6e3ecf2dfff8a491b88fe9a838f0bd5.yml
openapi_spec_hash: 5af8bcd38aae780c364688cb048d258b
config_hash: ff2eb5f192b4de36611b37b27961c2d8
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.380.0 (2025-12-15)

Full Changelog: [v0.379.0...v0.380.0](https://github.com/Increase/increase-java/compare/v0.379.0...v0.380.0)

### Features

* **api:** api update ([e010cfe](https://github.com/Increase/increase-java/commit/e010cfecbadad5976c5d1afef0c783164e64260a))

## 0.379.0 (2025-12-15)

Full Changelog: [v0.378.0...v0.379.0](https://github.com/Increase/increase-java/compare/v0.378.0...v0.379.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.379.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.379.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.379.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.380.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.380.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.380.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.379.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.380.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.379.0")
implementation("com.increase.api:increase-java:0.380.0")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.379.0")
<dependency>
<groupId>com.increase.api</groupId>
<artifactId>increase-java</artifactId>
<version>0.379.0</version>
<version>0.380.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.379.0" // x-release-please-version
version = "0.380.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4629,6 +4629,7 @@ private constructor(
private val line1: JsonField<String>,
private val line2: JsonField<String>,
private val name: JsonField<String>,
private val phone: JsonField<String>,
private val postalCode: JsonField<String>,
private val state: JsonField<String>,
private val additionalProperties: MutableMap<String, JsonValue>,
Expand All @@ -4640,11 +4641,12 @@ private constructor(
@JsonProperty("line1") @ExcludeMissing line1: JsonField<String> = JsonMissing.of(),
@JsonProperty("line2") @ExcludeMissing line2: JsonField<String> = JsonMissing.of(),
@JsonProperty("name") @ExcludeMissing name: JsonField<String> = JsonMissing.of(),
@JsonProperty("phone") @ExcludeMissing phone: JsonField<String> = JsonMissing.of(),
@JsonProperty("postal_code")
@ExcludeMissing
postalCode: JsonField<String> = JsonMissing.of(),
@JsonProperty("state") @ExcludeMissing state: JsonField<String> = JsonMissing.of(),
) : this(city, line1, line2, name, postalCode, state, mutableMapOf())
) : this(city, line1, line2, name, phone, postalCode, state, mutableMapOf())

/**
* The city of the check's destination.
Expand Down Expand Up @@ -4678,6 +4680,15 @@ private constructor(
*/
fun name(): Optional<String> = name.getOptional("name")

/**
* The shipper's phone number to be used in case of delivery issues. Only used for FedEx
* overnight shipping.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
fun phone(): Optional<String> = phone.getOptional("phone")

/**
* The postal code of the check's destination.
*
Expand Down Expand Up @@ -4722,6 +4733,13 @@ private constructor(
*/
@JsonProperty("name") @ExcludeMissing fun _name(): JsonField<String> = name

/**
* Returns the raw JSON value of [phone].
*
* Unlike [phone], this method doesn't throw if the JSON field has an unexpected type.
*/
@JsonProperty("phone") @ExcludeMissing fun _phone(): JsonField<String> = phone

/**
* Returns the raw JSON value of [postalCode].
*
Expand Down Expand Up @@ -4762,6 +4780,7 @@ private constructor(
* .line1()
* .line2()
* .name()
* .phone()
* .postalCode()
* .state()
* ```
Expand All @@ -4776,6 +4795,7 @@ private constructor(
private var line1: JsonField<String>? = null
private var line2: JsonField<String>? = null
private var name: JsonField<String>? = null
private var phone: JsonField<String>? = null
private var postalCode: JsonField<String>? = null
private var state: JsonField<String>? = null
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
Expand All @@ -4786,6 +4806,7 @@ private constructor(
line1 = returnAddress.line1
line2 = returnAddress.line2
name = returnAddress.name
phone = returnAddress.phone
postalCode = returnAddress.postalCode
state = returnAddress.state
additionalProperties = returnAddress.additionalProperties.toMutableMap()
Expand Down Expand Up @@ -4851,6 +4872,24 @@ private constructor(
*/
fun name(name: JsonField<String>) = apply { this.name = name }

/**
* The shipper's phone number to be used in case of delivery issues. Only used for
* FedEx overnight shipping.
*/
fun phone(phone: String?) = phone(JsonField.ofNullable(phone))

/** Alias for calling [Builder.phone] with `phone.orElse(null)`. */
fun phone(phone: Optional<String>) = phone(phone.getOrNull())

/**
* Sets [Builder.phone] to an arbitrary JSON value.
*
* You should usually call [Builder.phone] with a well-typed [String] value instead.
* This method is primarily for setting the field to an undocumented or not yet
* supported value.
*/
fun phone(phone: JsonField<String>) = apply { this.phone = phone }

/** The postal code of the check's destination. */
fun postalCode(postalCode: String?) = postalCode(JsonField.ofNullable(postalCode))

Expand Down Expand Up @@ -4916,6 +4955,7 @@ private constructor(
* .line1()
* .line2()
* .name()
* .phone()
* .postalCode()
* .state()
* ```
Expand All @@ -4928,6 +4968,7 @@ private constructor(
checkRequired("line1", line1),
checkRequired("line2", line2),
checkRequired("name", name),
checkRequired("phone", phone),
checkRequired("postalCode", postalCode),
checkRequired("state", state),
additionalProperties.toMutableMap(),
Expand All @@ -4945,6 +4986,7 @@ private constructor(
line1()
line2()
name()
phone()
postalCode()
state()
validated = true
Expand All @@ -4970,6 +5012,7 @@ private constructor(
(if (line1.asKnown().isPresent) 1 else 0) +
(if (line2.asKnown().isPresent) 1 else 0) +
(if (name.asKnown().isPresent) 1 else 0) +
(if (phone.asKnown().isPresent) 1 else 0) +
(if (postalCode.asKnown().isPresent) 1 else 0) +
(if (state.asKnown().isPresent) 1 else 0)

Expand All @@ -4983,19 +5026,29 @@ private constructor(
line1 == other.line1 &&
line2 == other.line2 &&
name == other.name &&
phone == other.phone &&
postalCode == other.postalCode &&
state == other.state &&
additionalProperties == other.additionalProperties
}

private val hashCode: Int by lazy {
Objects.hash(city, line1, line2, name, postalCode, state, additionalProperties)
Objects.hash(
city,
line1,
line2,
name,
phone,
postalCode,
state,
additionalProperties,
)
}

override fun hashCode(): Int = hashCode

override fun toString() =
"ReturnAddress{city=$city, line1=$line1, line2=$line2, name=$name, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}"
"ReturnAddress{city=$city, line1=$line1, line2=$line2, name=$name, phone=$phone, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}"
}

/** The shipping method for the check. */
Expand Down
Loading
Loading