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.367.0"
".": "0.368.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: 229
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a66f039751a4ffdebbbf533f24f55cd2c42708b9cf105512849849fddaafb5e8.yml
openapi_spec_hash: c265609bceb053f898ea14b1191fe927
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-bd464d151612058d8029150b376949b22d5515af23621465c0ce1c1069b91644.yml
openapi_spec_hash: e60e1548c523a0ee7c9daa1bd988cbc5
config_hash: ca1425272e17fa23d4466d33492334fa
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.368.0 (2025-11-24)

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

### Features

* **api:** api update ([5ca6984](https://github.com/Increase/increase-java/commit/5ca69846a32c92beb3f1872eaff953d423f6b61d))

## 0.367.0 (2025-11-24)

Full Changelog: [v0.366.0...v0.367.0](https://github.com/Increase/increase-java/compare/v0.366.0...v0.367.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.367.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.367.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.367.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.368.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.368.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.368.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.367.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.368.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.367.0")
implementation("com.increase.api:increase-java:0.368.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3383,6 +3383,7 @@ private constructor(
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val attachmentFileId: JsonField<String>,
private val checkVoucherImageFileId: JsonField<String>,
private val mailingAddress: JsonField<MailingAddress>,
private val memo: JsonField<String>,
private val note: JsonField<String>,
Expand All @@ -3400,6 +3401,9 @@ private constructor(
@JsonProperty("attachment_file_id")
@ExcludeMissing
attachmentFileId: JsonField<String> = JsonMissing.of(),
@JsonProperty("check_voucher_image_file_id")
@ExcludeMissing
checkVoucherImageFileId: JsonField<String> = JsonMissing.of(),
@JsonProperty("mailing_address")
@ExcludeMissing
mailingAddress: JsonField<MailingAddress> = JsonMissing.of(),
Expand All @@ -3423,6 +3427,7 @@ private constructor(
trackingUpdates: JsonField<List<TrackingUpdate>> = JsonMissing.of(),
) : this(
attachmentFileId,
checkVoucherImageFileId,
mailingAddress,
memo,
note,
Expand All @@ -3444,6 +3449,15 @@ private constructor(
fun attachmentFileId(): Optional<String> =
attachmentFileId.getOptional("attachment_file_id")

/**
* The ID of the file for the check voucher image.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
fun checkVoucherImageFileId(): Optional<String> =
checkVoucherImageFileId.getOptional("check_voucher_image_file_id")

/**
* Details for where Increase will mail the check.
*
Expand Down Expand Up @@ -3530,6 +3544,16 @@ private constructor(
@ExcludeMissing
fun _attachmentFileId(): JsonField<String> = attachmentFileId

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

/**
* Returns the raw JSON value of [mailingAddress].
*
Expand Down Expand Up @@ -3631,6 +3655,7 @@ private constructor(
* The following fields are required:
* ```java
* .attachmentFileId()
* .checkVoucherImageFileId()
* .mailingAddress()
* .memo()
* .note()
Expand All @@ -3649,6 +3674,7 @@ private constructor(
class Builder internal constructor() {

private var attachmentFileId: JsonField<String>? = null
private var checkVoucherImageFileId: JsonField<String>? = null
private var mailingAddress: JsonField<MailingAddress>? = null
private var memo: JsonField<String>? = null
private var note: JsonField<String>? = null
Expand All @@ -3663,6 +3689,7 @@ private constructor(
@JvmSynthetic
internal fun from(physicalCheck: PhysicalCheck) = apply {
attachmentFileId = physicalCheck.attachmentFileId
checkVoucherImageFileId = physicalCheck.checkVoucherImageFileId
mailingAddress = physicalCheck.mailingAddress
memo = physicalCheck.memo
note = physicalCheck.note
Expand Down Expand Up @@ -3696,6 +3723,28 @@ private constructor(
this.attachmentFileId = attachmentFileId
}

/** The ID of the file for the check voucher image. */
fun checkVoucherImageFileId(checkVoucherImageFileId: String?) =
checkVoucherImageFileId(JsonField.ofNullable(checkVoucherImageFileId))

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

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

/** Details for where Increase will mail the check. */
fun mailingAddress(mailingAddress: MailingAddress) =
mailingAddress(JsonField.of(mailingAddress))
Expand Down Expand Up @@ -3898,6 +3947,7 @@ private constructor(
* The following fields are required:
* ```java
* .attachmentFileId()
* .checkVoucherImageFileId()
* .mailingAddress()
* .memo()
* .note()
Expand All @@ -3914,6 +3964,7 @@ private constructor(
fun build(): PhysicalCheck =
PhysicalCheck(
checkRequired("attachmentFileId", attachmentFileId),
checkRequired("checkVoucherImageFileId", checkVoucherImageFileId),
checkRequired("mailingAddress", mailingAddress),
checkRequired("memo", memo),
checkRequired("note", note),
Expand All @@ -3935,6 +3986,7 @@ private constructor(
}

attachmentFileId()
checkVoucherImageFileId()
mailingAddress().validate()
memo()
note()
Expand Down Expand Up @@ -3964,6 +4016,7 @@ private constructor(
@JvmSynthetic
internal fun validity(): Int =
(if (attachmentFileId.asKnown().isPresent) 1 else 0) +
(if (checkVoucherImageFileId.asKnown().isPresent) 1 else 0) +
(mailingAddress.asKnown().getOrNull()?.validity() ?: 0) +
(if (memo.asKnown().isPresent) 1 else 0) +
(if (note.asKnown().isPresent) 1 else 0) +
Expand Down Expand Up @@ -5513,6 +5566,7 @@ private constructor(

return other is PhysicalCheck &&
attachmentFileId == other.attachmentFileId &&
checkVoucherImageFileId == other.checkVoucherImageFileId &&
mailingAddress == other.mailingAddress &&
memo == other.memo &&
note == other.note &&
Expand All @@ -5528,6 +5582,7 @@ private constructor(
private val hashCode: Int by lazy {
Objects.hash(
attachmentFileId,
checkVoucherImageFileId,
mailingAddress,
memo,
note,
Expand All @@ -5544,7 +5599,7 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"PhysicalCheck{attachmentFileId=$attachmentFileId, mailingAddress=$mailingAddress, memo=$memo, note=$note, payer=$payer, recipientName=$recipientName, returnAddress=$returnAddress, shippingMethod=$shippingMethod, signatureText=$signatureText, trackingUpdates=$trackingUpdates, additionalProperties=$additionalProperties}"
"PhysicalCheck{attachmentFileId=$attachmentFileId, checkVoucherImageFileId=$checkVoucherImageFileId, mailingAddress=$mailingAddress, memo=$memo, note=$note, payer=$payer, recipientName=$recipientName, returnAddress=$returnAddress, shippingMethod=$shippingMethod, signatureText=$signatureText, trackingUpdates=$trackingUpdates, additionalProperties=$additionalProperties}"
}

/** The lifecycle status of the transfer. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,7 @@ private constructor(
private val memo: JsonField<String>,
private val recipientName: JsonField<String>,
private val attachmentFileId: JsonField<String>,
private val checkVoucherImageFileId: JsonField<String>,
private val note: JsonField<String>,
private val payer: JsonField<List<Payer>>,
private val returnAddress: JsonField<ReturnAddress>,
Expand All @@ -1502,6 +1503,9 @@ private constructor(
@JsonProperty("attachment_file_id")
@ExcludeMissing
attachmentFileId: JsonField<String> = JsonMissing.of(),
@JsonProperty("check_voucher_image_file_id")
@ExcludeMissing
checkVoucherImageFileId: JsonField<String> = JsonMissing.of(),
@JsonProperty("note") @ExcludeMissing note: JsonField<String> = JsonMissing.of(),
@JsonProperty("payer") @ExcludeMissing payer: JsonField<List<Payer>> = JsonMissing.of(),
@JsonProperty("return_address")
Expand All @@ -1518,6 +1522,7 @@ private constructor(
memo,
recipientName,
attachmentFileId,
checkVoucherImageFileId,
note,
payer,
returnAddress,
Expand Down Expand Up @@ -1561,6 +1566,17 @@ private constructor(
fun attachmentFileId(): Optional<String> =
attachmentFileId.getOptional("attachment_file_id")

/**
* The ID of a File to be used as the check voucher image. This must have `purpose:
* check_voucher_image`. For details on pricing and restrictions, see
* https://increase.com/documentation/originating-checks#printing-checks .
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
fun checkVoucherImageFileId(): Optional<String> =
checkVoucherImageFileId.getOptional("check_voucher_image_file_id")

/**
* The descriptor that will be printed on the letter included with the check.
*
Expand Down Expand Up @@ -1644,6 +1660,16 @@ private constructor(
@ExcludeMissing
fun _attachmentFileId(): JsonField<String> = attachmentFileId

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

/**
* Returns the raw JSON value of [note].
*
Expand Down Expand Up @@ -1722,6 +1748,7 @@ private constructor(
private var memo: JsonField<String>? = null
private var recipientName: JsonField<String>? = null
private var attachmentFileId: JsonField<String> = JsonMissing.of()
private var checkVoucherImageFileId: JsonField<String> = JsonMissing.of()
private var note: JsonField<String> = JsonMissing.of()
private var payer: JsonField<MutableList<Payer>>? = null
private var returnAddress: JsonField<ReturnAddress> = JsonMissing.of()
Expand All @@ -1735,6 +1762,7 @@ private constructor(
memo = physicalCheck.memo
recipientName = physicalCheck.recipientName
attachmentFileId = physicalCheck.attachmentFileId
checkVoucherImageFileId = physicalCheck.checkVoucherImageFileId
note = physicalCheck.note
payer = physicalCheck.payer.map { it.toMutableList() }
returnAddress = physicalCheck.returnAddress
Expand Down Expand Up @@ -1803,6 +1831,25 @@ private constructor(
this.attachmentFileId = attachmentFileId
}

/**
* The ID of a File to be used as the check voucher image. This must have `purpose:
* check_voucher_image`. For details on pricing and restrictions, see
* https://increase.com/documentation/originating-checks#printing-checks .
*/
fun checkVoucherImageFileId(checkVoucherImageFileId: String) =
checkVoucherImageFileId(JsonField.of(checkVoucherImageFileId))

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

/** The descriptor that will be printed on the letter included with the check. */
fun note(note: String) = note(JsonField.of(note))

Expand Down Expand Up @@ -1937,6 +1984,7 @@ private constructor(
checkRequired("memo", memo),
checkRequired("recipientName", recipientName),
attachmentFileId,
checkVoucherImageFileId,
note,
(payer ?: JsonMissing.of()).map { it.toImmutable() },
returnAddress,
Expand All @@ -1957,6 +2005,7 @@ private constructor(
memo()
recipientName()
attachmentFileId()
checkVoucherImageFileId()
note()
payer().ifPresent { it.forEach { it.validate() } }
returnAddress().ifPresent { it.validate() }
Expand Down Expand Up @@ -1985,6 +2034,7 @@ private constructor(
(if (memo.asKnown().isPresent) 1 else 0) +
(if (recipientName.asKnown().isPresent) 1 else 0) +
(if (attachmentFileId.asKnown().isPresent) 1 else 0) +
(if (checkVoucherImageFileId.asKnown().isPresent) 1 else 0) +
(if (note.asKnown().isPresent) 1 else 0) +
(payer.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
(returnAddress.asKnown().getOrNull()?.validity() ?: 0) +
Expand Down Expand Up @@ -3085,6 +3135,7 @@ private constructor(
memo == other.memo &&
recipientName == other.recipientName &&
attachmentFileId == other.attachmentFileId &&
checkVoucherImageFileId == other.checkVoucherImageFileId &&
note == other.note &&
payer == other.payer &&
returnAddress == other.returnAddress &&
Expand All @@ -3099,6 +3150,7 @@ private constructor(
memo,
recipientName,
attachmentFileId,
checkVoucherImageFileId,
note,
payer,
returnAddress,
Expand All @@ -3111,7 +3163,7 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"PhysicalCheck{mailingAddress=$mailingAddress, memo=$memo, recipientName=$recipientName, attachmentFileId=$attachmentFileId, note=$note, payer=$payer, returnAddress=$returnAddress, shippingMethod=$shippingMethod, signatureText=$signatureText, additionalProperties=$additionalProperties}"
"PhysicalCheck{mailingAddress=$mailingAddress, memo=$memo, recipientName=$recipientName, attachmentFileId=$attachmentFileId, checkVoucherImageFileId=$checkVoucherImageFileId, note=$note, payer=$payer, returnAddress=$returnAddress, shippingMethod=$shippingMethod, signatureText=$signatureText, additionalProperties=$additionalProperties}"
}

/**
Expand Down
Loading
Loading