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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.prism.log
.stdy.log
.gradle
.idea
.kotlin
Expand Down
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.489.0"
".": "0.490.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-435a0c3bc8525f4e55189c5a54a7bd4369586c20031d9601ce40e66ba6d70282.yml
openapi_spec_hash: ec1dd937766a1b35a200d9b4787a1013
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c125ce952e66ce3ea3b9a4d1c5a2449584ec7290497e3b6bba8358960713fb79.yml
openapi_spec_hash: 1ed3f6bc7b08ca891adea5fab74430c9
config_hash: 25d7d7aa4882db6189b4b53e8e249e80
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 0.490.0 (2026-03-23)

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

### Features

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


### Chores

* **internal:** update gitignore ([8c48584](https://github.com/Increase/increase-java/commit/8c485847941ea867bcea6c119e63d65619abdf5a))
* **tests:** bump steady to v0.19.6 ([7189b45](https://github.com/Increase/increase-java/commit/7189b4537632d92c5433894b5db6f786d41634a0))

## 0.489.0 (2026-03-21)

Full Changelog: [v0.488.0...v0.489.0](https://github.com/Increase/increase-java/compare/v0.488.0...v0.489.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.489.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.489.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.489.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.490.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.490.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.490.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.489.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.490.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.489.0")
implementation("com.increase.api:increase-java:0.490.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ private constructor(
private constructor(
private val crossBorderPushTransfers: JsonField<CrossBorderPushTransfers>,
private val domesticPushTransfers: JsonField<DomesticPushTransfers>,
private val issuerCountry: JsonField<String>,
private val route: JsonField<InnerRoute>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {
Expand All @@ -236,8 +237,17 @@ private constructor(
@JsonProperty("domestic_push_transfers")
@ExcludeMissing
domesticPushTransfers: JsonField<DomesticPushTransfers> = JsonMissing.of(),
@JsonProperty("issuer_country")
@ExcludeMissing
issuerCountry: JsonField<String> = JsonMissing.of(),
@JsonProperty("route") @ExcludeMissing route: JsonField<InnerRoute> = JsonMissing.of(),
) : this(crossBorderPushTransfers, domesticPushTransfers, route, mutableMapOf())
) : this(
crossBorderPushTransfers,
domesticPushTransfers,
issuerCountry,
route,
mutableMapOf(),
)

/**
* Whether you can push funds to the card using cross-border Card Push Transfers.
Expand All @@ -257,6 +267,14 @@ private constructor(
fun domesticPushTransfers(): DomesticPushTransfers =
domesticPushTransfers.getRequired("domestic_push_transfers")

/**
* The ISO-3166-1 alpha-2 country code of the card's issuing bank.
*
* @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 issuerCountry(): String = issuerCountry.getRequired("issuer_country")

/**
* The card network route the capabilities apply to.
*
Expand Down Expand Up @@ -286,6 +304,16 @@ private constructor(
@ExcludeMissing
fun _domesticPushTransfers(): JsonField<DomesticPushTransfers> = domesticPushTransfers

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

/**
* Returns the raw JSON value of [route].
*
Expand Down Expand Up @@ -314,6 +342,7 @@ private constructor(
* ```java
* .crossBorderPushTransfers()
* .domesticPushTransfers()
* .issuerCountry()
* .route()
* ```
*/
Expand All @@ -325,13 +354,15 @@ private constructor(

private var crossBorderPushTransfers: JsonField<CrossBorderPushTransfers>? = null
private var domesticPushTransfers: JsonField<DomesticPushTransfers>? = null
private var issuerCountry: JsonField<String>? = null
private var route: JsonField<InnerRoute>? = null
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(route: Route) = apply {
crossBorderPushTransfers = route.crossBorderPushTransfers
domesticPushTransfers = route.domesticPushTransfers
issuerCountry = route.issuerCountry
this.route = route.route
additionalProperties = route.additionalProperties.toMutableMap()
}
Expand Down Expand Up @@ -367,6 +398,20 @@ private constructor(
this.domesticPushTransfers = domesticPushTransfers
}

/** The ISO-3166-1 alpha-2 country code of the card's issuing bank. */
fun issuerCountry(issuerCountry: String) = issuerCountry(JsonField.of(issuerCountry))

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

/** The card network route the capabilities apply to. */
fun route(route: InnerRoute) = route(JsonField.of(route))

Expand Down Expand Up @@ -407,6 +452,7 @@ private constructor(
* ```java
* .crossBorderPushTransfers()
* .domesticPushTransfers()
* .issuerCountry()
* .route()
* ```
*
Expand All @@ -416,6 +462,7 @@ private constructor(
Route(
checkRequired("crossBorderPushTransfers", crossBorderPushTransfers),
checkRequired("domesticPushTransfers", domesticPushTransfers),
checkRequired("issuerCountry", issuerCountry),
checkRequired("route", route),
additionalProperties.toMutableMap(),
)
Expand All @@ -430,6 +477,7 @@ private constructor(

crossBorderPushTransfers().validate()
domesticPushTransfers().validate()
issuerCountry()
route().validate()
validated = true
}
Expand All @@ -452,6 +500,7 @@ private constructor(
internal fun validity(): Int =
(crossBorderPushTransfers.asKnown().getOrNull()?.validity() ?: 0) +
(domesticPushTransfers.asKnown().getOrNull()?.validity() ?: 0) +
(if (issuerCountry.asKnown().isPresent) 1 else 0) +
(route.asKnown().getOrNull()?.validity() ?: 0)

/** Whether you can push funds to the card using cross-border Card Push Transfers. */
Expand Down Expand Up @@ -886,6 +935,7 @@ private constructor(
return other is Route &&
crossBorderPushTransfers == other.crossBorderPushTransfers &&
domesticPushTransfers == other.domesticPushTransfers &&
issuerCountry == other.issuerCountry &&
route == other.route &&
additionalProperties == other.additionalProperties
}
Expand All @@ -894,6 +944,7 @@ private constructor(
Objects.hash(
crossBorderPushTransfers,
domesticPushTransfers,
issuerCountry,
route,
additionalProperties,
)
Expand All @@ -902,7 +953,7 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"Route{crossBorderPushTransfers=$crossBorderPushTransfers, domesticPushTransfers=$domesticPushTransfers, route=$route, additionalProperties=$additionalProperties}"
"Route{crossBorderPushTransfers=$crossBorderPushTransfers, domesticPushTransfers=$domesticPushTransfers, issuerCountry=$issuerCountry, route=$route, additionalProperties=$additionalProperties}"
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ internal class CardTokenCapabilitiesTest {
.domesticPushTransfers(
CardTokenCapabilities.Route.DomesticPushTransfers.SUPPORTED
)
.issuerCountry("US")
.route(CardTokenCapabilities.Route.InnerRoute.VISA)
.build()
)
Expand All @@ -36,6 +37,7 @@ internal class CardTokenCapabilitiesTest {
.domesticPushTransfers(
CardTokenCapabilities.Route.DomesticPushTransfers.SUPPORTED
)
.issuerCountry("US")
.route(CardTokenCapabilities.Route.InnerRoute.VISA)
.build()
)
Expand All @@ -56,6 +58,7 @@ internal class CardTokenCapabilitiesTest {
.domesticPushTransfers(
CardTokenCapabilities.Route.DomesticPushTransfers.SUPPORTED
)
.issuerCountry("US")
.route(CardTokenCapabilities.Route.InnerRoute.VISA)
.build()
)
Expand Down
6 changes: 3 additions & 3 deletions scripts/mock
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ echo "==> Starting mock server with URL ${URL}"
# Run steady mock on the given spec
if [ "$1" == "--daemon" ]; then
# Pre-install the package so the download doesn't eat into the startup timeout
npm exec --package=@stdy/cli@0.19.5 -- steady --version
npm exec --package=@stdy/cli@0.19.6 -- steady --version

npm exec --package=@stdy/cli@0.19.5 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots "$URL" &> .stdy.log &
npm exec --package=@stdy/cli@0.19.6 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots "$URL" &> .stdy.log &

# Wait for server to come online via health endpoint (max 30s)
echo -n "Waiting for server"
Expand All @@ -48,5 +48,5 @@ if [ "$1" == "--daemon" ]; then

echo
else
npm exec --package=@stdy/cli@0.19.5 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots "$URL"
npm exec --package=@stdy/cli@0.19.6 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots "$URL"
fi
2 changes: 1 addition & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ elif ! steady_is_running ; then
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the steady command:"
echo
echo -e " \$ ${YELLOW}npm exec --package=@stdy/cli@0.19.5 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots${NC}"
echo -e " \$ ${YELLOW}npm exec --package=@stdy/cli@0.19.6 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots${NC}"
echo

exit 1
Expand Down
Loading