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.472.0"
".": "0.473.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: 236
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-2aab30efad14c2af42a235cff57e4f530dcc7f223df00093d9d171186d5f2c5e.yml
openapi_spec_hash: 08496939ae1bdbbe2aee358b693020f8
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-842d7a1e6cff968c70110dc90a9e51da05e2f781e902d6f5ca71940e4b9688e1.yml
openapi_spec_hash: c3aabecf5bb2135391d6b8faef4ac1b3
config_hash: 25d7d7aa4882db6189b4b53e8e249e80
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.473.0 (2026-03-12)

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

### Features

* **api:** api update ([4f635e9](https://github.com/Increase/increase-java/commit/4f635e9e929225b8188a07d827e068e7d0ae42ab))

## 0.472.0 (2026-03-12)

Full Changelog: [v0.471.0...v0.472.0](https://github.com/Increase/increase-java/compare/v0.471.0...v0.472.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.472.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.472.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.472.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.473.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.473.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.473.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.472.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.473.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.472.0")
implementation("com.increase.api:increase-java:0.473.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ private constructor(
private val approval: JsonField<Approval>,
private val businessApplicationIdentifier: JsonField<BusinessApplicationIdentifier>,
private val cancellation: JsonField<Cancellation>,
private val cardTokenId: JsonField<String>,
private val createdAt: JsonField<OffsetDateTime>,
private val createdBy: JsonField<CreatedBy>,
private val decline: JsonField<Decline>,
Expand Down Expand Up @@ -67,6 +68,9 @@ private constructor(
@JsonProperty("cancellation")
@ExcludeMissing
cancellation: JsonField<Cancellation> = JsonMissing.of(),
@JsonProperty("card_token_id")
@ExcludeMissing
cardTokenId: JsonField<String> = JsonMissing.of(),
@JsonProperty("created_at")
@ExcludeMissing
createdAt: JsonField<OffsetDateTime> = JsonMissing.of(),
Expand Down Expand Up @@ -131,6 +135,7 @@ private constructor(
approval,
businessApplicationIdentifier,
cancellation,
cardTokenId,
createdAt,
createdBy,
decline,
Expand Down Expand Up @@ -208,6 +213,14 @@ private constructor(
*/
fun cancellation(): Optional<Cancellation> = cancellation.getOptional("cancellation")

/**
* The ID of the Card Token that was used to validate the card.
*
* @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 cardTokenId(): String = cardTokenId.getRequired("card_token_id")

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the transfer
* was created.
Expand Down Expand Up @@ -440,6 +453,15 @@ private constructor(
@ExcludeMissing
fun _cancellation(): JsonField<Cancellation> = cancellation

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

/**
* Returns the raw JSON value of [createdAt].
*
Expand Down Expand Up @@ -654,6 +676,7 @@ private constructor(
* .approval()
* .businessApplicationIdentifier()
* .cancellation()
* .cardTokenId()
* .createdAt()
* .createdBy()
* .decline()
Expand Down Expand Up @@ -689,6 +712,7 @@ private constructor(
private var approval: JsonField<Approval>? = null
private var businessApplicationIdentifier: JsonField<BusinessApplicationIdentifier>? = null
private var cancellation: JsonField<Cancellation>? = null
private var cardTokenId: JsonField<String>? = null
private var createdAt: JsonField<OffsetDateTime>? = null
private var createdBy: JsonField<CreatedBy>? = null
private var decline: JsonField<Decline>? = null
Expand Down Expand Up @@ -720,6 +744,7 @@ private constructor(
approval = cardPushTransfer.approval
businessApplicationIdentifier = cardPushTransfer.businessApplicationIdentifier
cancellation = cardPushTransfer.cancellation
cardTokenId = cardPushTransfer.cardTokenId
createdAt = cardPushTransfer.createdAt
createdBy = cardPushTransfer.createdBy
decline = cardPushTransfer.decline
Expand Down Expand Up @@ -845,6 +870,18 @@ private constructor(
this.cancellation = cancellation
}

/** The ID of the Card Token that was used to validate the card. */
fun cardTokenId(cardTokenId: String) = cardTokenId(JsonField.of(cardTokenId))

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

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
* transfer was created.
Expand Down Expand Up @@ -1210,6 +1247,7 @@ private constructor(
* .approval()
* .businessApplicationIdentifier()
* .cancellation()
* .cardTokenId()
* .createdAt()
* .createdBy()
* .decline()
Expand Down Expand Up @@ -1243,6 +1281,7 @@ private constructor(
checkRequired("approval", approval),
checkRequired("businessApplicationIdentifier", businessApplicationIdentifier),
checkRequired("cancellation", cancellation),
checkRequired("cardTokenId", cardTokenId),
checkRequired("createdAt", createdAt),
checkRequired("createdBy", createdBy),
checkRequired("decline", decline),
Expand Down Expand Up @@ -1281,6 +1320,7 @@ private constructor(
approval().ifPresent { it.validate() }
businessApplicationIdentifier().validate()
cancellation().ifPresent { it.validate() }
cardTokenId()
createdAt()
createdBy().ifPresent { it.validate() }
decline().ifPresent { it.validate() }
Expand Down Expand Up @@ -1326,6 +1366,7 @@ private constructor(
(approval.asKnown().getOrNull()?.validity() ?: 0) +
(businessApplicationIdentifier.asKnown().getOrNull()?.validity() ?: 0) +
(cancellation.asKnown().getOrNull()?.validity() ?: 0) +
(if (cardTokenId.asKnown().isPresent) 1 else 0) +
(if (createdAt.asKnown().isPresent) 1 else 0) +
(createdBy.asKnown().getOrNull()?.validity() ?: 0) +
(decline.asKnown().getOrNull()?.validity() ?: 0) +
Expand Down Expand Up @@ -6857,6 +6898,7 @@ private constructor(
approval == other.approval &&
businessApplicationIdentifier == other.businessApplicationIdentifier &&
cancellation == other.cancellation &&
cardTokenId == other.cardTokenId &&
createdAt == other.createdAt &&
createdBy == other.createdBy &&
decline == other.decline &&
Expand Down Expand Up @@ -6889,6 +6931,7 @@ private constructor(
approval,
businessApplicationIdentifier,
cancellation,
cardTokenId,
createdAt,
createdBy,
decline,
Expand Down Expand Up @@ -6917,5 +6960,5 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"CardPushTransfer{id=$id, acceptance=$acceptance, accountId=$accountId, approval=$approval, businessApplicationIdentifier=$businessApplicationIdentifier, cancellation=$cancellation, createdAt=$createdAt, createdBy=$createdBy, decline=$decline, idempotencyKey=$idempotencyKey, merchantCategoryCode=$merchantCategoryCode, merchantCityName=$merchantCityName, merchantName=$merchantName, merchantNamePrefix=$merchantNamePrefix, merchantPostalCode=$merchantPostalCode, merchantState=$merchantState, presentmentAmount=$presentmentAmount, recipientName=$recipientName, senderAddressCity=$senderAddressCity, senderAddressLine1=$senderAddressLine1, senderAddressPostalCode=$senderAddressPostalCode, senderAddressState=$senderAddressState, senderName=$senderName, sourceAccountNumberId=$sourceAccountNumberId, status=$status, submission=$submission, type=$type, additionalProperties=$additionalProperties}"
"CardPushTransfer{id=$id, acceptance=$acceptance, accountId=$accountId, approval=$approval, businessApplicationIdentifier=$businessApplicationIdentifier, cancellation=$cancellation, cardTokenId=$cardTokenId, createdAt=$createdAt, createdBy=$createdBy, decline=$decline, idempotencyKey=$idempotencyKey, merchantCategoryCode=$merchantCategoryCode, merchantCityName=$merchantCityName, merchantName=$merchantName, merchantNamePrefix=$merchantNamePrefix, merchantPostalCode=$merchantPostalCode, merchantState=$merchantState, presentmentAmount=$presentmentAmount, recipientName=$recipientName, senderAddressCity=$senderAddressCity, senderAddressLine1=$senderAddressLine1, senderAddressPostalCode=$senderAddressPostalCode, senderAddressState=$senderAddressState, senderName=$senderName, sourceAccountNumberId=$sourceAccountNumberId, status=$status, submission=$submission, type=$type, additionalProperties=$additionalProperties}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ internal class CardPushTransferListPageResponseTest {
.canceledBy(null)
.build()
)
.cardTokenId("outbound_card_token_zlt0ml6youq3q7vcdlg0")
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.createdBy(
CardPushTransfer.CreatedBy.builder()
Expand Down Expand Up @@ -137,6 +138,7 @@ internal class CardPushTransferListPageResponseTest {
.canceledBy(null)
.build()
)
.cardTokenId("outbound_card_token_zlt0ml6youq3q7vcdlg0")
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.createdBy(
CardPushTransfer.CreatedBy.builder()
Expand Down Expand Up @@ -236,6 +238,7 @@ internal class CardPushTransferListPageResponseTest {
.canceledBy(null)
.build()
)
.cardTokenId("outbound_card_token_zlt0ml6youq3q7vcdlg0")
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.createdBy(
CardPushTransfer.CreatedBy.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ internal class CardPushTransferTest {
.canceledBy(null)
.build()
)
.cardTokenId("outbound_card_token_zlt0ml6youq3q7vcdlg0")
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.createdBy(
CardPushTransfer.CreatedBy.builder()
Expand Down Expand Up @@ -131,6 +132,8 @@ internal class CardPushTransferTest {
.canceledBy(null)
.build()
)
assertThat(cardPushTransfer.cardTokenId())
.isEqualTo("outbound_card_token_zlt0ml6youq3q7vcdlg0")
assertThat(cardPushTransfer.createdAt())
.isEqualTo(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
assertThat(cardPushTransfer.createdBy())
Expand Down Expand Up @@ -224,6 +227,7 @@ internal class CardPushTransferTest {
.canceledBy(null)
.build()
)
.cardTokenId("outbound_card_token_zlt0ml6youq3q7vcdlg0")
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.createdBy(
CardPushTransfer.CreatedBy.builder()
Expand Down
Loading