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.507.0"
".": "0.508.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: 241
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f4f26466e66f9f8c45d2291dac32c1de360e4bb73cac74c5ea5125359dc75fa5.yml
openapi_spec_hash: 4aa51886cd76bc38a881dcea41020d99
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-16584f71f31837a98f04250e08aec539fd7eb0bf69178b0e6b24254642f6755f.yml
openapi_spec_hash: a67f1f1147858e6b2143b5215fc80e04
config_hash: d48e9f65bcf642f92610034d6c43f07a
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.508.0 (2026-04-10)

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

### Features

* **api:** api update ([5c694c5](https://github.com/Increase/increase-java/commit/5c694c5330d281a7555698851ff12851f43732bd))

## 0.507.0 (2026-04-09)

Full Changelog: [v0.506.0...v0.507.0](https://github.com/Increase/increase-java/compare/v0.506.0...v0.507.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.507.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.507.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.507.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.508.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.508.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.508.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.507.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.508.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.507.0")
implementation("com.increase.api:increase-java:0.508.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1671,28 +1671,20 @@ private constructor(
class CreatedAt
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val after: JsonField<OffsetDateTime>,
private val before: JsonField<OffsetDateTime>,
private val onOrAfter: JsonField<OffsetDateTime>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {

@JsonCreator
private constructor(
@JsonProperty("after")
@ExcludeMissing
after: JsonField<OffsetDateTime> = JsonMissing.of(),
@JsonProperty("before")
@ExcludeMissing
before: JsonField<OffsetDateTime> = JsonMissing.of(),
) : this(after, before, mutableMapOf())

/**
* Filter results to transactions created after this time.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
fun after(): Optional<OffsetDateTime> = after.getOptional("after")
@JsonProperty("on_or_after")
@ExcludeMissing
onOrAfter: JsonField<OffsetDateTime> = JsonMissing.of(),
) : this(before, onOrAfter, mutableMapOf())

/**
* Filter results to transactions created before this time.
Expand All @@ -1703,11 +1695,12 @@ private constructor(
fun before(): Optional<OffsetDateTime> = before.getOptional("before")

/**
* Returns the raw JSON value of [after].
* Filter results to transactions created on or after this time.
*
* Unlike [after], this method doesn't throw if the JSON field has an unexpected type.
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
@JsonProperty("after") @ExcludeMissing fun _after(): JsonField<OffsetDateTime> = after
fun onOrAfter(): Optional<OffsetDateTime> = onOrAfter.getOptional("on_or_after")

/**
* Returns the raw JSON value of [before].
Expand All @@ -1718,6 +1711,16 @@ private constructor(
@ExcludeMissing
fun _before(): JsonField<OffsetDateTime> = 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<OffsetDateTime> = onOrAfter

@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
Expand All @@ -1737,8 +1740,8 @@ private constructor(
*
* The following fields are required:
* ```java
* .after()
* .before()
* .onOrAfter()
* ```
*/
@JvmStatic fun builder() = Builder()
Expand All @@ -1747,32 +1750,17 @@ private constructor(
/** A builder for [CreatedAt]. */
class Builder internal constructor() {

private var after: JsonField<OffsetDateTime>? = null
private var before: JsonField<OffsetDateTime>? = null
private var onOrAfter: JsonField<OffsetDateTime>? = null
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(createdAt: CreatedAt) = apply {
after = createdAt.after
before = createdAt.before
onOrAfter = createdAt.onOrAfter
additionalProperties = createdAt.additionalProperties.toMutableMap()
}

/** Filter results to transactions created after this time. */
fun after(after: OffsetDateTime?) = after(JsonField.ofNullable(after))

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

/**
* 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<OffsetDateTime>) = apply { this.after = after }

/** Filter results to transactions created before this time. */
fun before(before: OffsetDateTime?) = before(JsonField.ofNullable(before))

Expand All @@ -1788,6 +1776,25 @@ private constructor(
*/
fun before(before: JsonField<OffsetDateTime>) = apply { this.before = before }

/** Filter results to transactions created on or after this time. */
fun onOrAfter(onOrAfter: OffsetDateTime?) =
onOrAfter(JsonField.ofNullable(onOrAfter))

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

/**
* 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<OffsetDateTime>) = apply {
this.onOrAfter = onOrAfter
}

fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
Expand Down Expand Up @@ -1817,16 +1824,16 @@ private constructor(
*
* The following fields are required:
* ```java
* .after()
* .before()
* .onOrAfter()
* ```
*
* @throws IllegalStateException if any required field is unset.
*/
fun build(): CreatedAt =
CreatedAt(
checkRequired("after", after),
checkRequired("before", before),
checkRequired("onOrAfter", onOrAfter),
additionalProperties.toMutableMap(),
)
}
Expand All @@ -1838,8 +1845,8 @@ private constructor(
return@apply
}

after()
before()
onOrAfter()
validated = true
}

Expand All @@ -1859,26 +1866,28 @@ private constructor(
*/
@JvmSynthetic
internal fun validity(): Int =
(if (after.asKnown().isPresent) 1 else 0) +
(if (before.asKnown().isPresent) 1 else 0)
(if (before.asKnown().isPresent) 1 else 0) +
(if (onOrAfter.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 &&
additionalProperties == other.additionalProperties
}

private val hashCode: Int by lazy { Objects.hash(after, before, additionalProperties) }
private val hashCode: Int by lazy {
Objects.hash(before, onOrAfter, additionalProperties)
}

override fun hashCode(): Int = hashCode

override fun toString() =
"CreatedAt{after=$after, before=$before, additionalProperties=$additionalProperties}"
"CreatedAt{before=$before, onOrAfter=$onOrAfter, additionalProperties=$additionalProperties}"
}

override fun equals(other: Any?): Boolean {
Expand Down
Loading
Loading