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.298.0"
".": "0.299.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: 216
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f9cc7049ef70f37da85a196a822ee878a193af22d9894422fdc9100255b2a4c6.yml
openapi_spec_hash: efc2e40d9d10c87827994458d0101cd0
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-740517a6a575bb225c5bfa111ab83611c58533d5b1514f505aab22185f4a8992.yml
openapi_spec_hash: 8bfd6dcf11d076c24e4f092dc7e151ac
config_hash: 29e452035e915a07cd64333b10a83077
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.299.0 (2025-08-26)

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

### Features

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

## 0.298.0 (2025-08-26)

Full Changelog: [v0.297.0...v0.298.0](https://github.com/Increase/increase-java/compare/v0.297.0...v0.298.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.298.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.298.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.298.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.299.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.299.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.299.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.298.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.299.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.298.0")
implementation("com.increase.api:increase-java:0.299.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38607,6 +38607,7 @@ private constructor(
private val merchantName: JsonField<String>,
private val merchantPostalCode: JsonField<String>,
private val merchantState: JsonField<String>,
private val network: JsonField<Network>,
private val networkIdentifiers: JsonField<NetworkIdentifiers>,
private val pendingTransactionId: JsonField<String>,
private val presentmentAmount: JsonField<Long>,
Expand Down Expand Up @@ -38657,6 +38658,9 @@ private constructor(
@JsonProperty("merchant_state")
@ExcludeMissing
merchantState: JsonField<String> = JsonMissing.of(),
@JsonProperty("network")
@ExcludeMissing
network: JsonField<Network> = JsonMissing.of(),
@JsonProperty("network_identifiers")
@ExcludeMissing
networkIdentifiers: JsonField<NetworkIdentifiers> = JsonMissing.of(),
Expand Down Expand Up @@ -38691,6 +38695,7 @@ private constructor(
merchantName,
merchantPostalCode,
merchantState,
network,
networkIdentifiers,
pendingTransactionId,
presentmentAmount,
Expand Down Expand Up @@ -38830,6 +38835,15 @@ private constructor(
*/
fun merchantState(): Optional<String> = merchantState.getOptional("merchant_state")

/**
* The card network on which this transaction was processed.
*
* @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 network(): Network = network.getRequired("network")

/**
* Network-specific identifiers for this refund.
*
Expand Down Expand Up @@ -39031,6 +39045,13 @@ private constructor(
@ExcludeMissing
fun _merchantState(): JsonField<String> = merchantState

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

/**
* Returns the raw JSON value of [networkIdentifiers].
*
Expand Down Expand Up @@ -39131,6 +39152,7 @@ private constructor(
* .merchantName()
* .merchantPostalCode()
* .merchantState()
* .network()
* .networkIdentifiers()
* .pendingTransactionId()
* .presentmentAmount()
Expand Down Expand Up @@ -39160,6 +39182,7 @@ private constructor(
private var merchantName: JsonField<String>? = null
private var merchantPostalCode: JsonField<String>? = null
private var merchantState: JsonField<String>? = null
private var network: JsonField<Network>? = null
private var networkIdentifiers: JsonField<NetworkIdentifiers>? = null
private var pendingTransactionId: JsonField<String>? = null
private var presentmentAmount: JsonField<Long>? = null
Expand All @@ -39185,6 +39208,7 @@ private constructor(
merchantName = cardSettlement.merchantName
merchantPostalCode = cardSettlement.merchantPostalCode
merchantState = cardSettlement.merchantState
network = cardSettlement.network
networkIdentifiers = cardSettlement.networkIdentifiers
pendingTransactionId = cardSettlement.pendingTransactionId
presentmentAmount = cardSettlement.presentmentAmount
Expand Down Expand Up @@ -39433,6 +39457,18 @@ private constructor(
this.merchantState = merchantState
}

/** The card network on which this transaction was processed. */
fun network(network: Network) = network(JsonField.of(network))

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

/** Network-specific identifiers for this refund. */
fun networkIdentifiers(networkIdentifiers: NetworkIdentifiers) =
networkIdentifiers(JsonField.of(networkIdentifiers))
Expand Down Expand Up @@ -39600,6 +39636,7 @@ private constructor(
* .merchantName()
* .merchantPostalCode()
* .merchantState()
* .network()
* .networkIdentifiers()
* .pendingTransactionId()
* .presentmentAmount()
Expand Down Expand Up @@ -39627,6 +39664,7 @@ private constructor(
checkRequired("merchantName", merchantName),
checkRequired("merchantPostalCode", merchantPostalCode),
checkRequired("merchantState", merchantState),
checkRequired("network", network),
checkRequired("networkIdentifiers", networkIdentifiers),
checkRequired("pendingTransactionId", pendingTransactionId),
checkRequired("presentmentAmount", presentmentAmount),
Expand Down Expand Up @@ -39659,6 +39697,7 @@ private constructor(
merchantName()
merchantPostalCode()
merchantState()
network().validate()
networkIdentifiers().validate()
pendingTransactionId()
presentmentAmount()
Expand Down Expand Up @@ -39699,6 +39738,7 @@ private constructor(
(if (merchantName.asKnown().isPresent) 1 else 0) +
(if (merchantPostalCode.asKnown().isPresent) 1 else 0) +
(if (merchantState.asKnown().isPresent) 1 else 0) +
(network.asKnown().getOrNull()?.validity() ?: 0) +
(networkIdentifiers.asKnown().getOrNull()?.validity() ?: 0) +
(if (pendingTransactionId.asKnown().isPresent) 1 else 0) +
(if (presentmentAmount.asKnown().isPresent) 1 else 0) +
Expand Down Expand Up @@ -40735,6 +40775,135 @@ private constructor(
"Interchange{amount=$amount, code=$code, currency=$currency, additionalProperties=$additionalProperties}"
}

/** The card network on which this transaction was processed. */
class Network @JsonCreator private constructor(private val value: JsonField<String>) :
Enum {

/**
* Returns this class instance's raw value.
*
* This is usually only useful if this instance was deserialized from data that
* doesn't match any known member, and you want to know that value. For example, if
* the SDK is on an older version than the API, then the API may respond with new
* members that the SDK is unaware of.
*/
@com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField<String> = value

companion object {

/** Visa */
@JvmField val VISA = of("visa")

@JvmStatic fun of(value: String) = Network(JsonField.of(value))
}

/** An enum containing [Network]'s known values. */
enum class Known {
/** Visa */
VISA
}

/**
* An enum containing [Network]'s known values, as well as an [_UNKNOWN] member.
*
* An instance of [Network] can contain an unknown value in a couple of cases:
* - It was deserialized from data that doesn't match any known member. For example,
* if the SDK is on an older version than the API, then the API may respond with
* new members that the SDK is unaware of.
* - It was constructed with an arbitrary value using the [of] method.
*/
enum class Value {
/** Visa */
VISA,
/**
* An enum member indicating that [Network] was instantiated with an unknown
* value.
*/
_UNKNOWN,
}

/**
* Returns an enum member corresponding to this class instance's value, or
* [Value._UNKNOWN] if the class was instantiated with an unknown value.
*
* Use the [known] method instead if you're certain the value is always known or if
* you want to throw for the unknown case.
*/
fun value(): Value =
when (this) {
VISA -> Value.VISA
else -> Value._UNKNOWN
}

/**
* Returns an enum member corresponding to this class instance's value.
*
* Use the [value] method instead if you're uncertain the value is always known and
* don't want to throw for the unknown case.
*
* @throws IncreaseInvalidDataException if this class instance's value is a not a
* known member.
*/
fun known(): Known =
when (this) {
VISA -> Known.VISA
else -> throw IncreaseInvalidDataException("Unknown Network: $value")
}

/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for
* debugging and generally doesn't throw.
*
* @throws IncreaseInvalidDataException if this class instance's value does not have
* the expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow {
IncreaseInvalidDataException("Value is not a String")
}

private var validated: Boolean = false

fun validate(): Network = apply {
if (validated) {
return@apply
}

known()
validated = true
}

fun isValid(): Boolean =
try {
validate()
true
} catch (e: IncreaseInvalidDataException) {
false
}

/**
* Returns a score indicating how many valid values are contained in this object
* recursively.
*
* Used for best match union deserialization.
*/
@JvmSynthetic internal fun validity(): Int = if (value() == Value._UNKNOWN) 0 else 1

override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}

return other is Network && value == other.value
}

override fun hashCode() = value.hashCode()

override fun toString() = value.toString()
}

/** Network-specific identifiers for this refund. */
class NetworkIdentifiers
private constructor(
Expand Down Expand Up @@ -48166,6 +48335,7 @@ private constructor(
merchantName == other.merchantName &&
merchantPostalCode == other.merchantPostalCode &&
merchantState == other.merchantState &&
network == other.network &&
networkIdentifiers == other.networkIdentifiers &&
pendingTransactionId == other.pendingTransactionId &&
presentmentAmount == other.presentmentAmount &&
Expand All @@ -48192,6 +48362,7 @@ private constructor(
merchantName,
merchantPostalCode,
merchantState,
network,
networkIdentifiers,
pendingTransactionId,
presentmentAmount,
Expand All @@ -48206,7 +48377,7 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"CardSettlement{id=$id, amount=$amount, cardAuthorization=$cardAuthorization, cardPaymentId=$cardPaymentId, cashback=$cashback, currency=$currency, interchange=$interchange, merchantAcceptorId=$merchantAcceptorId, merchantCategoryCode=$merchantCategoryCode, merchantCity=$merchantCity, merchantCountry=$merchantCountry, merchantName=$merchantName, merchantPostalCode=$merchantPostalCode, merchantState=$merchantState, networkIdentifiers=$networkIdentifiers, pendingTransactionId=$pendingTransactionId, presentmentAmount=$presentmentAmount, presentmentCurrency=$presentmentCurrency, purchaseDetails=$purchaseDetails, transactionId=$transactionId, type=$type, additionalProperties=$additionalProperties}"
"CardSettlement{id=$id, amount=$amount, cardAuthorization=$cardAuthorization, cardPaymentId=$cardPaymentId, cashback=$cashback, currency=$currency, interchange=$interchange, merchantAcceptorId=$merchantAcceptorId, merchantCategoryCode=$merchantCategoryCode, merchantCity=$merchantCity, merchantCountry=$merchantCountry, merchantName=$merchantName, merchantPostalCode=$merchantPostalCode, merchantState=$merchantState, network=$network, networkIdentifiers=$networkIdentifiers, pendingTransactionId=$pendingTransactionId, presentmentAmount=$presentmentAmount, presentmentCurrency=$presentmentCurrency, purchaseDetails=$purchaseDetails, transactionId=$transactionId, type=$type, additionalProperties=$additionalProperties}"
}

/**
Expand Down
Loading
Loading