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.447.0"
".": "0.448.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: 232
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-910400a5c3fcab85b95bf574472b6356767c24d4f76eb296bcba4b7db309710c.yml
openapi_spec_hash: c8b1cebba3d13a5c050c1296b93e2bdb
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-985e738d362cc4d7dce557163d9e57b9a3a254718d862bdeb2758b6c265584b9.yml
openapi_spec_hash: aa0b0b7eb6ca282b6e607dcc0408fafe
config_hash: d15ecbf4dc8a7a0ef99397d11b557444
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.448.0 (2026-03-05)

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

### Features

* **api:** api update ([7356e8b](https://github.com/Increase/increase-java/commit/7356e8b8413d622ec1734b1796b71f70eafec2eb))


### Chores

* **internal:** codegen related update ([446e352](https://github.com/Increase/increase-java/commit/446e352ce5aeb3c1b45c311851fba729000888ae))

## 0.447.0 (2026-03-05)

Full Changelog: [v0.446.0...v0.447.0](https://github.com/Increase/increase-java/compare/v0.446.0...v0.447.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.447.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.447.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.447.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.448.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.448.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.448.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.447.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.448.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.447.0")
implementation("com.increase.api:increase-java:0.448.0")
```

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

subprojects {
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/increase.java.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ tasks.withType<Test>().configureEach {

val palantir by configurations.creating
dependencies {
palantir("com.palantir.javaformat:palantir-java-format:2.73.0")
palantir("com.palantir.javaformat:palantir-java-format:2.89.0")
}

fun registerPalantir(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,8 @@ private constructor(
}
}
?.let { retryAfterNanos ->
// If the API asks us to wait a certain amount of time (and it's a reasonable
// amount), just
// do what it says.
val retryAfter = Duration.ofNanos(retryAfterNanos.toLong())
if (retryAfter in Duration.ofNanos(0)..Duration.ofMinutes(1)) {
return retryAfter
}
// If the API asks us to wait a certain amount of time, do what it says.
return Duration.ofNanos(retryAfterNanos.toLong())
}

// Apply exponential backoff, but not more than the max.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1774,6 +1774,7 @@ private constructor(
private val merchantCategoryCode: JsonField<String>,
private val merchantCountry: JsonField<String>,
private val merchantName: JsonField<String>,
private val priorCardAuthenticationId: JsonField<String>,
private val purchaseAmount: JsonField<Long>,
private val purchaseCurrency: JsonField<String>,
private val realTimeDecisionId: JsonField<String>,
Expand Down Expand Up @@ -1845,6 +1846,9 @@ private constructor(
@JsonProperty("merchant_name")
@ExcludeMissing
merchantName: JsonField<String> = JsonMissing.of(),
@JsonProperty("prior_card_authentication_id")
@ExcludeMissing
priorCardAuthenticationId: JsonField<String> = JsonMissing.of(),
@JsonProperty("purchase_amount")
@ExcludeMissing
purchaseAmount: JsonField<Long> = JsonMissing.of(),
Expand Down Expand Up @@ -1880,6 +1884,7 @@ private constructor(
merchantCategoryCode,
merchantCountry,
merchantName,
priorCardAuthenticationId,
purchaseAmount,
purchaseCurrency,
realTimeDecisionId,
Expand Down Expand Up @@ -2085,6 +2090,16 @@ private constructor(
*/
fun merchantName(): String = merchantName.getRequired("merchant_name")

/**
* The ID of a prior Card Authentication that the requestor used to authenticate this
* cardholder for a previous transaction.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
fun priorCardAuthenticationId(): Optional<String> =
priorCardAuthenticationId.getOptional("prior_card_authentication_id")

/**
* The purchase amount in minor units.
*
Expand Down Expand Up @@ -2336,6 +2351,16 @@ private constructor(
@ExcludeMissing
fun _merchantName(): JsonField<String> = merchantName

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

/**
* Returns the raw JSON value of [purchaseAmount].
*
Expand Down Expand Up @@ -2420,6 +2445,7 @@ private constructor(
* .merchantCategoryCode()
* .merchantCountry()
* .merchantName()
* .priorCardAuthenticationId()
* .purchaseAmount()
* .purchaseCurrency()
* .realTimeDecisionId()
Expand Down Expand Up @@ -2454,6 +2480,7 @@ private constructor(
private var merchantCategoryCode: JsonField<String>? = null
private var merchantCountry: JsonField<String>? = null
private var merchantName: JsonField<String>? = null
private var priorCardAuthenticationId: JsonField<String>? = null
private var purchaseAmount: JsonField<Long>? = null
private var purchaseCurrency: JsonField<String>? = null
private var realTimeDecisionId: JsonField<String>? = null
Expand Down Expand Up @@ -2484,6 +2511,7 @@ private constructor(
merchantCategoryCode = cardAuthentication.merchantCategoryCode
merchantCountry = cardAuthentication.merchantCountry
merchantName = cardAuthentication.merchantName
priorCardAuthenticationId = cardAuthentication.priorCardAuthenticationId
purchaseAmount = cardAuthentication.purchaseAmount
purchaseCurrency = cardAuthentication.purchaseCurrency
realTimeDecisionId = cardAuthentication.realTimeDecisionId
Expand Down Expand Up @@ -2896,6 +2924,32 @@ private constructor(
this.merchantName = merchantName
}

/**
* The ID of a prior Card Authentication that the requestor used to authenticate
* this cardholder for a previous transaction.
*/
fun priorCardAuthenticationId(priorCardAuthenticationId: String?) =
priorCardAuthenticationId(JsonField.ofNullable(priorCardAuthenticationId))

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

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

/** The purchase amount in minor units. */
fun purchaseAmount(purchaseAmount: Long?) =
purchaseAmount(JsonField.ofNullable(purchaseAmount))
Expand Down Expand Up @@ -3051,6 +3105,7 @@ private constructor(
* .merchantCategoryCode()
* .merchantCountry()
* .merchantName()
* .priorCardAuthenticationId()
* .purchaseAmount()
* .purchaseCurrency()
* .realTimeDecisionId()
Expand Down Expand Up @@ -3083,6 +3138,7 @@ private constructor(
checkRequired("merchantCategoryCode", merchantCategoryCode),
checkRequired("merchantCountry", merchantCountry),
checkRequired("merchantName", merchantName),
checkRequired("priorCardAuthenticationId", priorCardAuthenticationId),
checkRequired("purchaseAmount", purchaseAmount),
checkRequired("purchaseCurrency", purchaseCurrency),
checkRequired("realTimeDecisionId", realTimeDecisionId),
Expand Down Expand Up @@ -3120,6 +3176,7 @@ private constructor(
merchantCategoryCode()
merchantCountry()
merchantName()
priorCardAuthenticationId()
purchaseAmount()
purchaseCurrency()
realTimeDecisionId()
Expand Down Expand Up @@ -3165,6 +3222,7 @@ private constructor(
(if (merchantCategoryCode.asKnown().isPresent) 1 else 0) +
(if (merchantCountry.asKnown().isPresent) 1 else 0) +
(if (merchantName.asKnown().isPresent) 1 else 0) +
(if (priorCardAuthenticationId.asKnown().isPresent) 1 else 0) +
(if (purchaseAmount.asKnown().isPresent) 1 else 0) +
(if (purchaseCurrency.asKnown().isPresent) 1 else 0) +
(if (realTimeDecisionId.asKnown().isPresent) 1 else 0) +
Expand Down Expand Up @@ -5676,6 +5734,7 @@ private constructor(
merchantCategoryCode == other.merchantCategoryCode &&
merchantCountry == other.merchantCountry &&
merchantName == other.merchantName &&
priorCardAuthenticationId == other.priorCardAuthenticationId &&
purchaseAmount == other.purchaseAmount &&
purchaseCurrency == other.purchaseCurrency &&
realTimeDecisionId == other.realTimeDecisionId &&
Expand Down Expand Up @@ -5707,6 +5766,7 @@ private constructor(
merchantCategoryCode,
merchantCountry,
merchantName,
priorCardAuthenticationId,
purchaseAmount,
purchaseCurrency,
realTimeDecisionId,
Expand All @@ -5719,7 +5779,7 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"CardAuthentication{id=$id, billingAddressCity=$billingAddressCity, billingAddressCountry=$billingAddressCountry, billingAddressLine1=$billingAddressLine1, billingAddressLine2=$billingAddressLine2, billingAddressLine3=$billingAddressLine3, billingAddressPostalCode=$billingAddressPostalCode, billingAddressState=$billingAddressState, cardId=$cardId, cardPaymentId=$cardPaymentId, cardholderEmail=$cardholderEmail, cardholderName=$cardholderName, category=$category, challenge=$challenge, createdAt=$createdAt, denyReason=$denyReason, deviceChannel=$deviceChannel, merchantAcceptorId=$merchantAcceptorId, merchantCategoryCode=$merchantCategoryCode, merchantCountry=$merchantCountry, merchantName=$merchantName, purchaseAmount=$purchaseAmount, purchaseCurrency=$purchaseCurrency, realTimeDecisionId=$realTimeDecisionId, status=$status, type=$type, additionalProperties=$additionalProperties}"
"CardAuthentication{id=$id, billingAddressCity=$billingAddressCity, billingAddressCountry=$billingAddressCountry, billingAddressLine1=$billingAddressLine1, billingAddressLine2=$billingAddressLine2, billingAddressLine3=$billingAddressLine3, billingAddressPostalCode=$billingAddressPostalCode, billingAddressState=$billingAddressState, cardId=$cardId, cardPaymentId=$cardPaymentId, cardholderEmail=$cardholderEmail, cardholderName=$cardholderName, category=$category, challenge=$challenge, createdAt=$createdAt, denyReason=$denyReason, deviceChannel=$deviceChannel, merchantAcceptorId=$merchantAcceptorId, merchantCategoryCode=$merchantCategoryCode, merchantCountry=$merchantCountry, merchantName=$merchantName, priorCardAuthenticationId=$priorCardAuthenticationId, purchaseAmount=$purchaseAmount, purchaseCurrency=$purchaseCurrency, realTimeDecisionId=$realTimeDecisionId, status=$status, type=$type, additionalProperties=$additionalProperties}"
}

/**
Expand Down
Loading
Loading