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.276.0"
".": "0.277.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: 202
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-244805b184601a0639e868cb601337a5ebe0f259576a7e22d46c881ee22e17d3.yml
openapi_spec_hash: a667a8fca7bc57f82f22ddc2a9829e19
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-65d55098340df71e6f5c251c62e6853ad5184102c603d9f74622e8b33581c800.yml
openapi_spec_hash: 9f772e02b53a65c6e8ada7ac684117fb
config_hash: a185e9a72778cc4658ea73fb3a7f1354
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 0.277.0 (2025-08-11)

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

### Features

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


### Chores

* **internal:** update comment in script ([fcf7e4b](https://github.com/Increase/increase-java/commit/fcf7e4bc77ec92c9b5c2e039fba663b52d60356a))
* update @stainless-api/prism-cli to v5.15.0 ([471dbd9](https://github.com/Increase/increase-java/commit/471dbd93d5019390e51d4b51b30730919802f56c))

## 0.276.0 (2025-08-07)

Full Changelog: [v0.275.0...v0.276.0](https://github.com/Increase/increase-java/compare/v0.275.0...v0.276.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.276.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.276.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.276.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.277.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.277.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.277.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.276.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.277.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.276.0")
implementation("com.increase.api:increase-java:0.277.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ private constructor(
private val senderReference: JsonField<String>,
private val status: JsonField<Status>,
private val type: JsonField<Type>,
private val wireDrawdownRequestId: JsonField<String>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {

Expand Down Expand Up @@ -119,6 +120,9 @@ private constructor(
senderReference: JsonField<String> = JsonMissing.of(),
@JsonProperty("status") @ExcludeMissing status: JsonField<Status> = JsonMissing.of(),
@JsonProperty("type") @ExcludeMissing type: JsonField<Type> = JsonMissing.of(),
@JsonProperty("wire_drawdown_request_id")
@ExcludeMissing
wireDrawdownRequestId: JsonField<String> = JsonMissing.of(),
) : this(
id,
accountId,
Expand Down Expand Up @@ -146,6 +150,7 @@ private constructor(
senderReference,
status,
type,
wireDrawdownRequestId,
mutableMapOf(),
)

Expand Down Expand Up @@ -383,6 +388,15 @@ private constructor(
*/
fun type(): Type = type.getRequired("type")

/**
* The wire drawdown request the inbound wire transfer is fulfilling.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
fun wireDrawdownRequestId(): Optional<String> =
wireDrawdownRequestId.getOptional("wire_drawdown_request_id")

/**
* Returns the raw JSON value of [id].
*
Expand Down Expand Up @@ -622,6 +636,16 @@ private constructor(
*/
@JsonProperty("type") @ExcludeMissing fun _type(): JsonField<Type> = type

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

@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
Expand Down Expand Up @@ -667,6 +691,7 @@ private constructor(
* .senderReference()
* .status()
* .type()
* .wireDrawdownRequestId()
* ```
*/
@JvmStatic fun builder() = Builder()
Expand Down Expand Up @@ -701,6 +726,7 @@ private constructor(
private var senderReference: JsonField<String>? = null
private var status: JsonField<Status>? = null
private var type: JsonField<Type>? = null
private var wireDrawdownRequestId: JsonField<String>? = null
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
Expand Down Expand Up @@ -736,6 +762,7 @@ private constructor(
senderReference = inboundWireTransfer.senderReference
status = inboundWireTransfer.status
type = inboundWireTransfer.type
wireDrawdownRequestId = inboundWireTransfer.wireDrawdownRequestId
additionalProperties = inboundWireTransfer.additionalProperties.toMutableMap()
}

Expand Down Expand Up @@ -1271,6 +1298,28 @@ private constructor(
*/
fun type(type: JsonField<Type>) = apply { this.type = type }

/** The wire drawdown request the inbound wire transfer is fulfilling. */
fun wireDrawdownRequestId(wireDrawdownRequestId: String?) =
wireDrawdownRequestId(JsonField.ofNullable(wireDrawdownRequestId))

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

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

fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
Expand Down Expand Up @@ -1323,6 +1372,7 @@ private constructor(
* .senderReference()
* .status()
* .type()
* .wireDrawdownRequestId()
* ```
*
* @throws IllegalStateException if any required field is unset.
Expand Down Expand Up @@ -1370,6 +1420,7 @@ private constructor(
checkRequired("senderReference", senderReference),
checkRequired("status", status),
checkRequired("type", type),
checkRequired("wireDrawdownRequestId", wireDrawdownRequestId),
additionalProperties.toMutableMap(),
)
}
Expand Down Expand Up @@ -1407,6 +1458,7 @@ private constructor(
senderReference()
status().validate()
type().validate()
wireDrawdownRequestId()
validated = true
}

Expand Down Expand Up @@ -1450,7 +1502,8 @@ private constructor(
(reversal.asKnown().getOrNull()?.validity() ?: 0) +
(if (senderReference.asKnown().isPresent) 1 else 0) +
(status.asKnown().getOrNull()?.validity() ?: 0) +
(type.asKnown().getOrNull()?.validity() ?: 0)
(type.asKnown().getOrNull()?.validity() ?: 0) +
(if (wireDrawdownRequestId.asKnown().isPresent) 1 else 0)

/** Information about the reversal of the inbound wire transfer if it has been reversed. */
class Reversal
Expand Down Expand Up @@ -2092,15 +2145,15 @@ private constructor(
return true
}

return /* spotless:off */ other is InboundWireTransfer && id == other.id && accountId == other.accountId && accountNumberId == other.accountNumberId && amount == other.amount && beneficiaryAddressLine1 == other.beneficiaryAddressLine1 && beneficiaryAddressLine2 == other.beneficiaryAddressLine2 && beneficiaryAddressLine3 == other.beneficiaryAddressLine3 && beneficiaryName == other.beneficiaryName && beneficiaryReference == other.beneficiaryReference && createdAt == other.createdAt && description == other.description && inputMessageAccountabilityData == other.inputMessageAccountabilityData && originatorAddressLine1 == other.originatorAddressLine1 && originatorAddressLine2 == other.originatorAddressLine2 && originatorAddressLine3 == other.originatorAddressLine3 && originatorName == other.originatorName && originatorRoutingNumber == other.originatorRoutingNumber && originatorToBeneficiaryInformation == other.originatorToBeneficiaryInformation && originatorToBeneficiaryInformationLine1 == other.originatorToBeneficiaryInformationLine1 && originatorToBeneficiaryInformationLine2 == other.originatorToBeneficiaryInformationLine2 && originatorToBeneficiaryInformationLine3 == other.originatorToBeneficiaryInformationLine3 && originatorToBeneficiaryInformationLine4 == other.originatorToBeneficiaryInformationLine4 && reversal == other.reversal && senderReference == other.senderReference && status == other.status && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is InboundWireTransfer && id == other.id && accountId == other.accountId && accountNumberId == other.accountNumberId && amount == other.amount && beneficiaryAddressLine1 == other.beneficiaryAddressLine1 && beneficiaryAddressLine2 == other.beneficiaryAddressLine2 && beneficiaryAddressLine3 == other.beneficiaryAddressLine3 && beneficiaryName == other.beneficiaryName && beneficiaryReference == other.beneficiaryReference && createdAt == other.createdAt && description == other.description && inputMessageAccountabilityData == other.inputMessageAccountabilityData && originatorAddressLine1 == other.originatorAddressLine1 && originatorAddressLine2 == other.originatorAddressLine2 && originatorAddressLine3 == other.originatorAddressLine3 && originatorName == other.originatorName && originatorRoutingNumber == other.originatorRoutingNumber && originatorToBeneficiaryInformation == other.originatorToBeneficiaryInformation && originatorToBeneficiaryInformationLine1 == other.originatorToBeneficiaryInformationLine1 && originatorToBeneficiaryInformationLine2 == other.originatorToBeneficiaryInformationLine2 && originatorToBeneficiaryInformationLine3 == other.originatorToBeneficiaryInformationLine3 && originatorToBeneficiaryInformationLine4 == other.originatorToBeneficiaryInformationLine4 && reversal == other.reversal && senderReference == other.senderReference && status == other.status && type == other.type && wireDrawdownRequestId == other.wireDrawdownRequestId && additionalProperties == other.additionalProperties /* spotless:on */
}

/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(id, accountId, accountNumberId, amount, beneficiaryAddressLine1, beneficiaryAddressLine2, beneficiaryAddressLine3, beneficiaryName, beneficiaryReference, createdAt, description, inputMessageAccountabilityData, originatorAddressLine1, originatorAddressLine2, originatorAddressLine3, originatorName, originatorRoutingNumber, originatorToBeneficiaryInformation, originatorToBeneficiaryInformationLine1, originatorToBeneficiaryInformationLine2, originatorToBeneficiaryInformationLine3, originatorToBeneficiaryInformationLine4, reversal, senderReference, status, type, additionalProperties) }
private val hashCode: Int by lazy { Objects.hash(id, accountId, accountNumberId, amount, beneficiaryAddressLine1, beneficiaryAddressLine2, beneficiaryAddressLine3, beneficiaryName, beneficiaryReference, createdAt, description, inputMessageAccountabilityData, originatorAddressLine1, originatorAddressLine2, originatorAddressLine3, originatorName, originatorRoutingNumber, originatorToBeneficiaryInformation, originatorToBeneficiaryInformationLine1, originatorToBeneficiaryInformationLine2, originatorToBeneficiaryInformationLine3, originatorToBeneficiaryInformationLine4, reversal, senderReference, status, type, wireDrawdownRequestId, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int = hashCode

override fun toString() =
"InboundWireTransfer{id=$id, accountId=$accountId, accountNumberId=$accountNumberId, amount=$amount, beneficiaryAddressLine1=$beneficiaryAddressLine1, beneficiaryAddressLine2=$beneficiaryAddressLine2, beneficiaryAddressLine3=$beneficiaryAddressLine3, beneficiaryName=$beneficiaryName, beneficiaryReference=$beneficiaryReference, createdAt=$createdAt, description=$description, inputMessageAccountabilityData=$inputMessageAccountabilityData, originatorAddressLine1=$originatorAddressLine1, originatorAddressLine2=$originatorAddressLine2, originatorAddressLine3=$originatorAddressLine3, originatorName=$originatorName, originatorRoutingNumber=$originatorRoutingNumber, originatorToBeneficiaryInformation=$originatorToBeneficiaryInformation, originatorToBeneficiaryInformationLine1=$originatorToBeneficiaryInformationLine1, originatorToBeneficiaryInformationLine2=$originatorToBeneficiaryInformationLine2, originatorToBeneficiaryInformationLine3=$originatorToBeneficiaryInformationLine3, originatorToBeneficiaryInformationLine4=$originatorToBeneficiaryInformationLine4, reversal=$reversal, senderReference=$senderReference, status=$status, type=$type, additionalProperties=$additionalProperties}"
"InboundWireTransfer{id=$id, accountId=$accountId, accountNumberId=$accountNumberId, amount=$amount, beneficiaryAddressLine1=$beneficiaryAddressLine1, beneficiaryAddressLine2=$beneficiaryAddressLine2, beneficiaryAddressLine3=$beneficiaryAddressLine3, beneficiaryName=$beneficiaryName, beneficiaryReference=$beneficiaryReference, createdAt=$createdAt, description=$description, inputMessageAccountabilityData=$inputMessageAccountabilityData, originatorAddressLine1=$originatorAddressLine1, originatorAddressLine2=$originatorAddressLine2, originatorAddressLine3=$originatorAddressLine3, originatorName=$originatorName, originatorRoutingNumber=$originatorRoutingNumber, originatorToBeneficiaryInformation=$originatorToBeneficiaryInformation, originatorToBeneficiaryInformationLine1=$originatorToBeneficiaryInformationLine1, originatorToBeneficiaryInformationLine2=$originatorToBeneficiaryInformationLine2, originatorToBeneficiaryInformationLine3=$originatorToBeneficiaryInformationLine3, originatorToBeneficiaryInformationLine4=$originatorToBeneficiaryInformationLine4, reversal=$reversal, senderReference=$senderReference, status=$status, type=$type, wireDrawdownRequestId=$wireDrawdownRequestId, additionalProperties=$additionalProperties}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ internal class InboundWireTransferListPageResponseTest {
.senderReference(null)
.status(InboundWireTransfer.Status.ACCEPTED)
.type(InboundWireTransfer.Type.INBOUND_WIRE_TRANSFER)
.wireDrawdownRequestId(null)
.build()
)
.nextCursor("v57w5d")
Expand Down Expand Up @@ -86,6 +87,7 @@ internal class InboundWireTransferListPageResponseTest {
.senderReference(null)
.status(InboundWireTransfer.Status.ACCEPTED)
.type(InboundWireTransfer.Type.INBOUND_WIRE_TRANSFER)
.wireDrawdownRequestId(null)
.build()
)
assertThat(inboundWireTransferListPageResponse.nextCursor()).contains("v57w5d")
Expand Down Expand Up @@ -129,6 +131,7 @@ internal class InboundWireTransferListPageResponseTest {
.senderReference(null)
.status(InboundWireTransfer.Status.ACCEPTED)
.type(InboundWireTransfer.Type.INBOUND_WIRE_TRANSFER)
.wireDrawdownRequestId(null)
.build()
)
.nextCursor("v57w5d")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ internal class InboundWireTransferTest {
.senderReference(null)
.status(InboundWireTransfer.Status.ACCEPTED)
.type(InboundWireTransfer.Type.INBOUND_WIRE_TRANSFER)
.wireDrawdownRequestId(null)
.build()

assertThat(inboundWireTransfer.id()).isEqualTo("inbound_wire_transfer_f228m6bmhtcxjco9pwp0")
Expand Down Expand Up @@ -82,6 +83,7 @@ internal class InboundWireTransferTest {
assertThat(inboundWireTransfer.status()).isEqualTo(InboundWireTransfer.Status.ACCEPTED)
assertThat(inboundWireTransfer.type())
.isEqualTo(InboundWireTransfer.Type.INBOUND_WIRE_TRANSFER)
assertThat(inboundWireTransfer.wireDrawdownRequestId()).isEmpty
}

@Test
Expand Down Expand Up @@ -120,6 +122,7 @@ internal class InboundWireTransferTest {
.senderReference(null)
.status(InboundWireTransfer.Status.ACCEPTED)
.type(InboundWireTransfer.Type.INBOUND_WIRE_TRANSFER)
.wireDrawdownRequestId(null)
.build()

val roundtrippedInboundWireTransfer =
Expand Down
4 changes: 2 additions & 2 deletions scripts/mock
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}"

# Run prism mock on the given spec
if [ "$1" == "--daemon" ]; then
npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL" &> .prism.log &
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log &

# Wait for server to come online
echo -n "Waiting for server"
Expand All @@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then

echo
else
npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL"
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$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 ! prism_is_running ; then
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the prism command:"
echo
echo -e " \$ ${YELLOW}npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock path/to/your.openapi.yml${NC}"
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
echo

exit 1
Expand Down
Loading