diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index c01949a9c..145ecf69a 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.509.0"
+ ".": "0.510.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 3a06ad510..0be591b72 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 241
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9cc37a5650ead65f77fe88834795d2e80f5f0f79e474d15030145f8303835a4f.yml
-openapi_spec_hash: 68ec4be9e1dd4153a3175ad41a36352f
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-76519f799070d5e184aa17c924a502d5767ba63eed88e48255145e1c36a19b7f.yml
+openapi_spec_hash: 4bac99d90df83788bc79092b880d9ac6
config_hash: d48e9f65bcf642f92610034d6c43f07a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1a92d8ea5..e2603e777 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 0.510.0 (2026-04-11)
+
+Full Changelog: [v0.509.0...v0.510.0](https://github.com/Increase/increase-java/compare/v0.509.0...v0.510.0)
+
+### Features
+
+* **api:** api update ([32189ac](https://github.com/Increase/increase-java/commit/32189ac6acdd4b4ca595c10150d861370e3e8976))
+
## 0.509.0 (2026-04-10)
Full Changelog: [v0.508.0...v0.509.0](https://github.com/Increase/increase-java/compare/v0.508.0...v0.509.0)
diff --git a/README.md b/README.md
index b0e0992b3..61129141b 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.509.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.509.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.510.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.510.0)
@@ -13,7 +13,7 @@ The Increase Java SDK is similar to the Increase Kotlin SDK but with minor diffe
-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.509.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.510.0).
@@ -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.509.0")
+implementation("com.increase.api:increase-java:0.510.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.509.0")
com.increase.api
increase-java
- 0.509.0
+ 0.510.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index bee85c7be..07d79572c 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.509.0" // x-release-please-version
+ version = "0.510.0" // x-release-please-version
}
subprojects {
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/exports/ExportCreateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/exports/ExportCreateParams.kt
index 5641377be..7ab305d29 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/exports/ExportCreateParams.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/exports/ExportCreateParams.kt
@@ -67,14 +67,6 @@ private constructor(
fun accountVerificationLetter(): Optional =
body.accountVerificationLetter()
- /**
- * Options for the created export. Required if `category` is equal to `balance_csv`.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
- * server responded with an unexpected value).
- */
- fun balanceCsv(): Optional = body.balanceCsv()
-
/**
* Options for the created export. Required if `category` is equal to
* `bookkeeping_account_balance_csv`.
@@ -166,13 +158,6 @@ private constructor(
fun _accountVerificationLetter(): JsonField =
body._accountVerificationLetter()
- /**
- * Returns the raw JSON value of [balanceCsv].
- *
- * Unlike [balanceCsv], this method doesn't throw if the JSON field has an unexpected type.
- */
- fun _balanceCsv(): JsonField = body._balanceCsv()
-
/**
* Returns the raw JSON value of [bookkeepingAccountBalanceCsv].
*
@@ -273,7 +258,7 @@ private constructor(
* - [accountStatementBai2]
* - [accountStatementOfx]
* - [accountVerificationLetter]
- * - [balanceCsv]
+ * - [bookkeepingAccountBalanceCsv]
* - etc.
*/
fun body(body: Body) = apply { this.body = body.toBuilder() }
@@ -348,18 +333,6 @@ private constructor(
accountVerificationLetter: JsonField
) = apply { body.accountVerificationLetter(accountVerificationLetter) }
- /** Options for the created export. Required if `category` is equal to `balance_csv`. */
- fun balanceCsv(balanceCsv: BalanceCsv) = apply { body.balanceCsv(balanceCsv) }
-
- /**
- * Sets [Builder.balanceCsv] to an arbitrary JSON value.
- *
- * You should usually call [Builder.balanceCsv] with a well-typed [BalanceCsv] value
- * instead. This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun balanceCsv(balanceCsv: JsonField) = apply { body.balanceCsv(balanceCsv) }
-
/**
* Options for the created export. Required if `category` is equal to
* `bookkeeping_account_balance_csv`.
@@ -622,7 +595,6 @@ private constructor(
private val accountStatementBai2: JsonField,
private val accountStatementOfx: JsonField,
private val accountVerificationLetter: JsonField,
- private val balanceCsv: JsonField,
private val bookkeepingAccountBalanceCsv: JsonField,
private val dailyAccountBalanceCsv: JsonField,
private val entityCsv: JsonField,
@@ -647,9 +619,6 @@ private constructor(
@JsonProperty("account_verification_letter")
@ExcludeMissing
accountVerificationLetter: JsonField = JsonMissing.of(),
- @JsonProperty("balance_csv")
- @ExcludeMissing
- balanceCsv: JsonField = JsonMissing.of(),
@JsonProperty("bookkeeping_account_balance_csv")
@ExcludeMissing
bookkeepingAccountBalanceCsv: JsonField =
@@ -677,7 +646,6 @@ private constructor(
accountStatementBai2,
accountStatementOfx,
accountVerificationLetter,
- balanceCsv,
bookkeepingAccountBalanceCsv,
dailyAccountBalanceCsv,
entityCsv,
@@ -726,14 +694,6 @@ private constructor(
fun accountVerificationLetter(): Optional =
accountVerificationLetter.getOptional("account_verification_letter")
- /**
- * Options for the created export. Required if `category` is equal to `balance_csv`.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
- * the server responded with an unexpected value).
- */
- fun balanceCsv(): Optional = balanceCsv.getOptional("balance_csv")
-
/**
* Options for the created export. Required if `category` is equal to
* `bookkeeping_account_balance_csv`.
@@ -835,15 +795,6 @@ private constructor(
fun _accountVerificationLetter(): JsonField =
accountVerificationLetter
- /**
- * Returns the raw JSON value of [balanceCsv].
- *
- * Unlike [balanceCsv], this method doesn't throw if the JSON field has an unexpected type.
- */
- @JsonProperty("balance_csv")
- @ExcludeMissing
- fun _balanceCsv(): JsonField = balanceCsv
-
/**
* Returns the raw JSON value of [bookkeepingAccountBalanceCsv].
*
@@ -945,7 +896,6 @@ private constructor(
private var accountStatementOfx: JsonField = JsonMissing.of()
private var accountVerificationLetter: JsonField =
JsonMissing.of()
- private var balanceCsv: JsonField = JsonMissing.of()
private var bookkeepingAccountBalanceCsv: JsonField =
JsonMissing.of()
private var dailyAccountBalanceCsv: JsonField = JsonMissing.of()
@@ -962,7 +912,6 @@ private constructor(
accountStatementBai2 = body.accountStatementBai2
accountStatementOfx = body.accountStatementOfx
accountVerificationLetter = body.accountVerificationLetter
- balanceCsv = body.balanceCsv
bookkeepingAccountBalanceCsv = body.bookkeepingAccountBalanceCsv
dailyAccountBalanceCsv = body.dailyAccountBalanceCsv
entityCsv = body.entityCsv
@@ -1040,20 +989,6 @@ private constructor(
accountVerificationLetter: JsonField
) = apply { this.accountVerificationLetter = accountVerificationLetter }
- /** Options for the created export. Required if `category` is equal to `balance_csv`. */
- fun balanceCsv(balanceCsv: BalanceCsv) = balanceCsv(JsonField.of(balanceCsv))
-
- /**
- * Sets [Builder.balanceCsv] to an arbitrary JSON value.
- *
- * You should usually call [Builder.balanceCsv] with a well-typed [BalanceCsv] value
- * instead. This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun balanceCsv(balanceCsv: JsonField) = apply {
- this.balanceCsv = balanceCsv
- }
-
/**
* Options for the created export. Required if `category` is equal to
* `bookkeeping_account_balance_csv`.
@@ -1204,7 +1139,6 @@ private constructor(
accountStatementBai2,
accountStatementOfx,
accountVerificationLetter,
- balanceCsv,
bookkeepingAccountBalanceCsv,
dailyAccountBalanceCsv,
entityCsv,
@@ -1227,7 +1161,6 @@ private constructor(
accountStatementBai2().ifPresent { it.validate() }
accountStatementOfx().ifPresent { it.validate() }
accountVerificationLetter().ifPresent { it.validate() }
- balanceCsv().ifPresent { it.validate() }
bookkeepingAccountBalanceCsv().ifPresent { it.validate() }
dailyAccountBalanceCsv().ifPresent { it.validate() }
entityCsv().ifPresent { it.validate() }
@@ -1258,7 +1191,6 @@ private constructor(
(accountStatementBai2.asKnown().getOrNull()?.validity() ?: 0) +
(accountStatementOfx.asKnown().getOrNull()?.validity() ?: 0) +
(accountVerificationLetter.asKnown().getOrNull()?.validity() ?: 0) +
- (balanceCsv.asKnown().getOrNull()?.validity() ?: 0) +
(bookkeepingAccountBalanceCsv.asKnown().getOrNull()?.validity() ?: 0) +
(dailyAccountBalanceCsv.asKnown().getOrNull()?.validity() ?: 0) +
(entityCsv.asKnown().getOrNull()?.validity() ?: 0) +
@@ -1277,7 +1209,6 @@ private constructor(
accountStatementBai2 == other.accountStatementBai2 &&
accountStatementOfx == other.accountStatementOfx &&
accountVerificationLetter == other.accountVerificationLetter &&
- balanceCsv == other.balanceCsv &&
bookkeepingAccountBalanceCsv == other.bookkeepingAccountBalanceCsv &&
dailyAccountBalanceCsv == other.dailyAccountBalanceCsv &&
entityCsv == other.entityCsv &&
@@ -1294,7 +1225,6 @@ private constructor(
accountStatementBai2,
accountStatementOfx,
accountVerificationLetter,
- balanceCsv,
bookkeepingAccountBalanceCsv,
dailyAccountBalanceCsv,
entityCsv,
@@ -1309,7 +1239,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "Body{category=$category, accountStatementBai2=$accountStatementBai2, accountStatementOfx=$accountStatementOfx, accountVerificationLetter=$accountVerificationLetter, balanceCsv=$balanceCsv, bookkeepingAccountBalanceCsv=$bookkeepingAccountBalanceCsv, dailyAccountBalanceCsv=$dailyAccountBalanceCsv, entityCsv=$entityCsv, fundingInstructions=$fundingInstructions, transactionCsv=$transactionCsv, vendorCsv=$vendorCsv, voidedCheck=$voidedCheck, additionalProperties=$additionalProperties}"
+ "Body{category=$category, accountStatementBai2=$accountStatementBai2, accountStatementOfx=$accountStatementOfx, accountVerificationLetter=$accountVerificationLetter, bookkeepingAccountBalanceCsv=$bookkeepingAccountBalanceCsv, dailyAccountBalanceCsv=$dailyAccountBalanceCsv, entityCsv=$entityCsv, fundingInstructions=$fundingInstructions, transactionCsv=$transactionCsv, vendorCsv=$vendorCsv, voidedCheck=$voidedCheck, additionalProperties=$additionalProperties}"
}
/** The type of Export to create. */
@@ -2420,487 +2350,6 @@ private constructor(
"AccountVerificationLetter{accountNumberId=$accountNumberId, balanceDate=$balanceDate, additionalProperties=$additionalProperties}"
}
- /** Options for the created export. Required if `category` is equal to `balance_csv`. */
- class BalanceCsv
- @JsonCreator(mode = JsonCreator.Mode.DISABLED)
- private constructor(
- private val accountId: JsonField,
- private val createdAt: JsonField,
- private val additionalProperties: MutableMap,
- ) {
-
- @JsonCreator
- private constructor(
- @JsonProperty("account_id")
- @ExcludeMissing
- accountId: JsonField = JsonMissing.of(),
- @JsonProperty("created_at")
- @ExcludeMissing
- createdAt: JsonField = JsonMissing.of(),
- ) : this(accountId, createdAt, mutableMapOf())
-
- /**
- * Filter exported Balances to the specified Account.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
- * the server responded with an unexpected value).
- */
- fun accountId(): Optional = accountId.getOptional("account_id")
-
- /**
- * Filter results by time range on the `created_at` attribute.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
- * the server responded with an unexpected value).
- */
- fun createdAt(): Optional = createdAt.getOptional("created_at")
-
- /**
- * Returns the raw JSON value of [accountId].
- *
- * Unlike [accountId], this method doesn't throw if the JSON field has an unexpected type.
- */
- @JsonProperty("account_id") @ExcludeMissing fun _accountId(): JsonField = accountId
-
- /**
- * Returns the raw JSON value of [createdAt].
- *
- * Unlike [createdAt], this method doesn't throw if the JSON field has an unexpected type.
- */
- @JsonProperty("created_at")
- @ExcludeMissing
- fun _createdAt(): JsonField = createdAt
-
- @JsonAnySetter
- private fun putAdditionalProperty(key: String, value: JsonValue) {
- additionalProperties.put(key, value)
- }
-
- @JsonAnyGetter
- @ExcludeMissing
- fun _additionalProperties(): Map =
- Collections.unmodifiableMap(additionalProperties)
-
- fun toBuilder() = Builder().from(this)
-
- companion object {
-
- /** Returns a mutable builder for constructing an instance of [BalanceCsv]. */
- @JvmStatic fun builder() = Builder()
- }
-
- /** A builder for [BalanceCsv]. */
- class Builder internal constructor() {
-
- private var accountId: JsonField = JsonMissing.of()
- private var createdAt: JsonField = JsonMissing.of()
- private var additionalProperties: MutableMap = mutableMapOf()
-
- @JvmSynthetic
- internal fun from(balanceCsv: BalanceCsv) = apply {
- accountId = balanceCsv.accountId
- createdAt = balanceCsv.createdAt
- additionalProperties = balanceCsv.additionalProperties.toMutableMap()
- }
-
- /** Filter exported Balances to the specified Account. */
- fun accountId(accountId: String) = accountId(JsonField.of(accountId))
-
- /**
- * Sets [Builder.accountId] to an arbitrary JSON value.
- *
- * You should usually call [Builder.accountId] with a well-typed [String] value instead.
- * This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun accountId(accountId: JsonField) = apply { this.accountId = accountId }
-
- /** Filter results by time range on the `created_at` attribute. */
- fun createdAt(createdAt: CreatedAt) = createdAt(JsonField.of(createdAt))
-
- /**
- * Sets [Builder.createdAt] to an arbitrary JSON value.
- *
- * You should usually call [Builder.createdAt] with a well-typed [CreatedAt] value
- * instead. This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun createdAt(createdAt: JsonField) = apply { this.createdAt = createdAt }
-
- fun additionalProperties(additionalProperties: Map) = apply {
- this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
- }
-
- fun putAdditionalProperty(key: String, value: JsonValue) = apply {
- additionalProperties.put(key, value)
- }
-
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
- this.additionalProperties.putAll(additionalProperties)
- }
-
- fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
-
- fun removeAllAdditionalProperties(keys: Set) = apply {
- keys.forEach(::removeAdditionalProperty)
- }
-
- /**
- * Returns an immutable instance of [BalanceCsv].
- *
- * Further updates to this [Builder] will not mutate the returned instance.
- */
- fun build(): BalanceCsv =
- BalanceCsv(accountId, createdAt, additionalProperties.toMutableMap())
- }
-
- private var validated: Boolean = false
-
- fun validate(): BalanceCsv = apply {
- if (validated) {
- return@apply
- }
-
- accountId()
- createdAt().ifPresent { it.validate() }
- 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 (accountId.asKnown().isPresent) 1 else 0) +
- (createdAt.asKnown().getOrNull()?.validity() ?: 0)
-
- /** Filter results by time range on the `created_at` attribute. */
- class CreatedAt
- @JsonCreator(mode = JsonCreator.Mode.DISABLED)
- private constructor(
- private val after: JsonField,
- private val before: JsonField,
- private val onOrAfter: JsonField,
- private val onOrBefore: JsonField,
- private val additionalProperties: MutableMap,
- ) {
-
- @JsonCreator
- private constructor(
- @JsonProperty("after")
- @ExcludeMissing
- after: JsonField = JsonMissing.of(),
- @JsonProperty("before")
- @ExcludeMissing
- before: JsonField = JsonMissing.of(),
- @JsonProperty("on_or_after")
- @ExcludeMissing
- onOrAfter: JsonField = JsonMissing.of(),
- @JsonProperty("on_or_before")
- @ExcludeMissing
- onOrBefore: JsonField = JsonMissing.of(),
- ) : this(after, before, onOrAfter, onOrBefore, mutableMapOf())
-
- /**
- * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
- * timestamp.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun after(): Optional = after.getOptional("after")
-
- /**
- * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
- * timestamp.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun before(): Optional = before.getOptional("before")
-
- /**
- * Return results on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
- * timestamp.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun onOrAfter(): Optional = onOrAfter.getOptional("on_or_after")
-
- /**
- * Return results on or before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
- * timestamp.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun onOrBefore(): Optional = onOrBefore.getOptional("on_or_before")
-
- /**
- * Returns the raw JSON value of [after].
- *
- * Unlike [after], this method doesn't throw if the JSON field has an unexpected type.
- */
- @JsonProperty("after") @ExcludeMissing fun _after(): JsonField = after
-
- /**
- * Returns the raw JSON value of [before].
- *
- * Unlike [before], this method doesn't throw if the JSON field has an unexpected type.
- */
- @JsonProperty("before")
- @ExcludeMissing
- fun _before(): JsonField = before
-
- /**
- * Returns the raw JSON value of [onOrAfter].
- *
- * Unlike [onOrAfter], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- @JsonProperty("on_or_after")
- @ExcludeMissing
- fun _onOrAfter(): JsonField = onOrAfter
-
- /**
- * Returns the raw JSON value of [onOrBefore].
- *
- * Unlike [onOrBefore], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- @JsonProperty("on_or_before")
- @ExcludeMissing
- fun _onOrBefore(): JsonField = onOrBefore
-
- @JsonAnySetter
- private fun putAdditionalProperty(key: String, value: JsonValue) {
- additionalProperties.put(key, value)
- }
-
- @JsonAnyGetter
- @ExcludeMissing
- fun _additionalProperties(): Map =
- Collections.unmodifiableMap(additionalProperties)
-
- fun toBuilder() = Builder().from(this)
-
- companion object {
-
- /** Returns a mutable builder for constructing an instance of [CreatedAt]. */
- @JvmStatic fun builder() = Builder()
- }
-
- /** A builder for [CreatedAt]. */
- class Builder internal constructor() {
-
- private var after: JsonField = JsonMissing.of()
- private var before: JsonField = JsonMissing.of()
- private var onOrAfter: JsonField = JsonMissing.of()
- private var onOrBefore: JsonField = JsonMissing.of()
- private var additionalProperties: MutableMap = mutableMapOf()
-
- @JvmSynthetic
- internal fun from(createdAt: CreatedAt) = apply {
- after = createdAt.after
- before = createdAt.before
- onOrAfter = createdAt.onOrAfter
- onOrBefore = createdAt.onOrBefore
- additionalProperties = createdAt.additionalProperties.toMutableMap()
- }
-
- /**
- * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
- * timestamp.
- */
- fun after(after: OffsetDateTime) = after(JsonField.of(after))
-
- /**
- * Sets [Builder.after] to an arbitrary JSON value.
- *
- * You should usually call [Builder.after] with a well-typed [OffsetDateTime] value
- * instead. This method is primarily for setting the field to an undocumented or not
- * yet supported value.
- */
- fun after(after: JsonField) = apply { this.after = after }
-
- /**
- * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
- * timestamp.
- */
- fun before(before: OffsetDateTime) = before(JsonField.of(before))
-
- /**
- * Sets [Builder.before] to an arbitrary JSON value.
- *
- * You should usually call [Builder.before] with a well-typed [OffsetDateTime] value
- * instead. This method is primarily for setting the field to an undocumented or not
- * yet supported value.
- */
- fun before(before: JsonField) = apply { this.before = before }
-
- /**
- * Return results on or after this
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
- */
- fun onOrAfter(onOrAfter: OffsetDateTime) = onOrAfter(JsonField.of(onOrAfter))
-
- /**
- * Sets [Builder.onOrAfter] to an arbitrary JSON value.
- *
- * You should usually call [Builder.onOrAfter] with a well-typed [OffsetDateTime]
- * value instead. This method is primarily for setting the field to an undocumented
- * or not yet supported value.
- */
- fun onOrAfter(onOrAfter: JsonField) = apply {
- this.onOrAfter = onOrAfter
- }
-
- /**
- * Return results on or before this
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
- */
- fun onOrBefore(onOrBefore: OffsetDateTime) = onOrBefore(JsonField.of(onOrBefore))
-
- /**
- * Sets [Builder.onOrBefore] to an arbitrary JSON value.
- *
- * You should usually call [Builder.onOrBefore] with a well-typed [OffsetDateTime]
- * value instead. This method is primarily for setting the field to an undocumented
- * or not yet supported value.
- */
- fun onOrBefore(onOrBefore: JsonField) = apply {
- this.onOrBefore = onOrBefore
- }
-
- fun additionalProperties(additionalProperties: Map) = apply {
- this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
- }
-
- fun putAdditionalProperty(key: String, value: JsonValue) = apply {
- additionalProperties.put(key, value)
- }
-
- fun putAllAdditionalProperties(additionalProperties: Map) =
- apply {
- this.additionalProperties.putAll(additionalProperties)
- }
-
- fun removeAdditionalProperty(key: String) = apply {
- additionalProperties.remove(key)
- }
-
- fun removeAllAdditionalProperties(keys: Set) = apply {
- keys.forEach(::removeAdditionalProperty)
- }
-
- /**
- * Returns an immutable instance of [CreatedAt].
- *
- * Further updates to this [Builder] will not mutate the returned instance.
- */
- fun build(): CreatedAt =
- CreatedAt(
- after,
- before,
- onOrAfter,
- onOrBefore,
- additionalProperties.toMutableMap(),
- )
- }
-
- private var validated: Boolean = false
-
- fun validate(): CreatedAt = apply {
- if (validated) {
- return@apply
- }
-
- after()
- before()
- onOrAfter()
- onOrBefore()
- 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 (after.asKnown().isPresent) 1 else 0) +
- (if (before.asKnown().isPresent) 1 else 0) +
- (if (onOrAfter.asKnown().isPresent) 1 else 0) +
- (if (onOrBefore.asKnown().isPresent) 1 else 0)
-
- override fun equals(other: Any?): Boolean {
- if (this === other) {
- return true
- }
-
- return other is CreatedAt &&
- after == other.after &&
- before == other.before &&
- onOrAfter == other.onOrAfter &&
- onOrBefore == other.onOrBefore &&
- additionalProperties == other.additionalProperties
- }
-
- private val hashCode: Int by lazy {
- Objects.hash(after, before, onOrAfter, onOrBefore, additionalProperties)
- }
-
- override fun hashCode(): Int = hashCode
-
- override fun toString() =
- "CreatedAt{after=$after, before=$before, onOrAfter=$onOrAfter, onOrBefore=$onOrBefore, additionalProperties=$additionalProperties}"
- }
-
- override fun equals(other: Any?): Boolean {
- if (this === other) {
- return true
- }
-
- return other is BalanceCsv &&
- accountId == other.accountId &&
- createdAt == other.createdAt &&
- additionalProperties == other.additionalProperties
- }
-
- private val hashCode: Int by lazy {
- Objects.hash(accountId, createdAt, additionalProperties)
- }
-
- override fun hashCode(): Int = hashCode
-
- override fun toString() =
- "BalanceCsv{accountId=$accountId, createdAt=$createdAt, additionalProperties=$additionalProperties}"
- }
-
/**
* Options for the created export. Required if `category` is equal to
* `bookkeeping_account_balance_csv`.
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/exports/ExportCreateParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/exports/ExportCreateParamsTest.kt
index a6b54d3e1..0944be619 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/exports/ExportCreateParamsTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/exports/ExportCreateParamsTest.kt
@@ -37,19 +37,6 @@ internal class ExportCreateParamsTest {
.balanceDate(LocalDate.parse("2019-12-27"))
.build()
)
- .balanceCsv(
- ExportCreateParams.BalanceCsv.builder()
- .accountId("account_id")
- .createdAt(
- ExportCreateParams.BalanceCsv.CreatedAt.builder()
- .after(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .before(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .onOrAfter(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .onOrBefore(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .build()
- )
- .build()
- )
.bookkeepingAccountBalanceCsv(
ExportCreateParams.BookkeepingAccountBalanceCsv.builder()
.bookkeepingAccountId("bookkeeping_account_id")
@@ -122,19 +109,6 @@ internal class ExportCreateParamsTest {
.balanceDate(LocalDate.parse("2019-12-27"))
.build()
)
- .balanceCsv(
- ExportCreateParams.BalanceCsv.builder()
- .accountId("account_id")
- .createdAt(
- ExportCreateParams.BalanceCsv.CreatedAt.builder()
- .after(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .before(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .onOrAfter(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .onOrBefore(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .build()
- )
- .build()
- )
.bookkeepingAccountBalanceCsv(
ExportCreateParams.BookkeepingAccountBalanceCsv.builder()
.bookkeepingAccountId("bookkeeping_account_id")
@@ -207,20 +181,6 @@ internal class ExportCreateParamsTest {
.balanceDate(LocalDate.parse("2019-12-27"))
.build()
)
- assertThat(body.balanceCsv())
- .contains(
- ExportCreateParams.BalanceCsv.builder()
- .accountId("account_id")
- .createdAt(
- ExportCreateParams.BalanceCsv.CreatedAt.builder()
- .after(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .before(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .onOrAfter(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .onOrBefore(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .build()
- )
- .build()
- )
assertThat(body.bookkeepingAccountBalanceCsv())
.contains(
ExportCreateParams.BookkeepingAccountBalanceCsv.builder()
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/async/ExportServiceAsyncTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/async/ExportServiceAsyncTest.kt
index 5c5eccf72..455855fa8 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/services/async/ExportServiceAsyncTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/services/async/ExportServiceAsyncTest.kt
@@ -50,19 +50,6 @@ internal class ExportServiceAsyncTest {
.balanceDate(LocalDate.parse("2019-12-27"))
.build()
)
- .balanceCsv(
- ExportCreateParams.BalanceCsv.builder()
- .accountId("account_id")
- .createdAt(
- ExportCreateParams.BalanceCsv.CreatedAt.builder()
- .after(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .before(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .onOrAfter(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .onOrBefore(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .build()
- )
- .build()
- )
.bookkeepingAccountBalanceCsv(
ExportCreateParams.BookkeepingAccountBalanceCsv.builder()
.bookkeepingAccountId("bookkeeping_account_id")
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/ExportServiceTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/ExportServiceTest.kt
index e4b697cc8..057e6e1b0 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/ExportServiceTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/ExportServiceTest.kt
@@ -50,19 +50,6 @@ internal class ExportServiceTest {
.balanceDate(LocalDate.parse("2019-12-27"))
.build()
)
- .balanceCsv(
- ExportCreateParams.BalanceCsv.builder()
- .accountId("account_id")
- .createdAt(
- ExportCreateParams.BalanceCsv.CreatedAt.builder()
- .after(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .before(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .onOrAfter(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .onOrBefore(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
- .build()
- )
- .build()
- )
.bookkeepingAccountBalanceCsv(
ExportCreateParams.BookkeepingAccountBalanceCsv.builder()
.bookkeepingAccountId("bookkeeping_account_id")