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.34.0"
".": "0.35.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 103
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-097aa5c0e1408d7bd31c15caded400b84f45c0296aebdf67a1dc1a4013f371dd.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-26c7b0375aaf9218b32f9af29242d38e67a8318f3ae3e8cc5d1cd86c60e89e51.yml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.35.0 (2025-02-21)

Full Changelog: [v0.34.0...v0.35.0](https://github.com/orbcorp/orb-java/compare/v0.34.0...v0.35.0)

### Features

* **api:** api update ([#270](https://github.com/orbcorp/orb-java/issues/270)) ([13d68f1](https://github.com/orbcorp/orb-java/commit/13d68f1f97cf56633b6e3a17286d927f6d6a327b))

## 0.34.0 (2025-02-21)

Full Changelog: [v0.33.0...v0.34.0](https://github.com/orbcorp/orb-java/compare/v0.33.0...v0.34.0)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- x-release-please-start-version -->

[![Maven Central](https://img.shields.io/maven-central/v/com.withorb.api/orb-java)](https://central.sonatype.com/artifact/com.withorb.api/orb-java/0.34.0)
[![Maven Central](https://img.shields.io/maven-central/v/com.withorb.api/orb-java)](https://central.sonatype.com/artifact/com.withorb.api/orb-java/0.35.0)

<!-- x-release-please-end -->

Expand All @@ -19,7 +19,7 @@ The REST API documentation can be found on [docs.withorb.com](https://docs.witho
### Gradle

```kotlin
implementation("com.withorb.api:orb-java:0.34.0")
implementation("com.withorb.api:orb-java:0.35.0")
```

### Maven
Expand All @@ -28,7 +28,7 @@ implementation("com.withorb.api:orb-java:0.34.0")
<dependency>
<groupId>com.withorb.api</groupId>
<artifactId>orb-java</artifactId>
<version>0.34.0</version>
<version>0.35.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
allprojects {
group = "com.withorb.api"
version = "0.34.0" // x-release-please-version
version = "0.35.0" // x-release-please-version
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import com.withorb.api.core.http.QueryParams
import com.withorb.api.core.immutableEmptyMap
import com.withorb.api.core.toImmutable
import com.withorb.api.errors.OrbInvalidDataException
import java.time.OffsetDateTime
import java.util.Objects
import java.util.Optional

Expand Down Expand Up @@ -61,6 +62,11 @@ private constructor(
*/
fun threshold(): String = body.threshold()

/**
* The date from which the top-up is active. If unspecified, the top-up is active immediately.
*/
fun activeFrom(): Optional<OffsetDateTime> = body.activeFrom()

/**
* The number of days or months after which the top-up expires. If unspecified, it does not
* expire.
Expand Down Expand Up @@ -91,6 +97,11 @@ private constructor(
*/
fun _threshold(): JsonField<String> = body._threshold()

/**
* The date from which the top-up is active. If unspecified, the top-up is active immediately.
*/
fun _activeFrom(): JsonField<OffsetDateTime> = body._activeFrom()

/**
* The number of days or months after which the top-up expires. If unspecified, it does not
* expire.
Expand Down Expand Up @@ -138,6 +149,9 @@ private constructor(
@JsonProperty("threshold")
@ExcludeMissing
private val threshold: JsonField<String> = JsonMissing.of(),
@JsonProperty("active_from")
@ExcludeMissing
private val activeFrom: JsonField<OffsetDateTime> = JsonMissing.of(),
@JsonProperty("expires_after")
@ExcludeMissing
private val expiresAfter: JsonField<Long> = JsonMissing.of(),
Expand Down Expand Up @@ -169,6 +183,13 @@ private constructor(
*/
fun threshold(): String = threshold.getRequired("threshold")

/**
* The date from which the top-up is active. If unspecified, the top-up is active
* immediately.
*/
fun activeFrom(): Optional<OffsetDateTime> =
Optional.ofNullable(activeFrom.getNullable("active_from"))

/**
* The number of days or months after which the top-up expires. If unspecified, it does not
* expire.
Expand Down Expand Up @@ -205,6 +226,14 @@ private constructor(
*/
@JsonProperty("threshold") @ExcludeMissing fun _threshold(): JsonField<String> = threshold

/**
* The date from which the top-up is active. If unspecified, the top-up is active
* immediately.
*/
@JsonProperty("active_from")
@ExcludeMissing
fun _activeFrom(): JsonField<OffsetDateTime> = activeFrom

/**
* The number of days or months after which the top-up expires. If unspecified, it does not
* expire.
Expand Down Expand Up @@ -234,6 +263,7 @@ private constructor(
invoiceSettings().validate()
perUnitCostBasis()
threshold()
activeFrom()
expiresAfter()
expiresAfterUnit()
validated = true
Expand All @@ -254,6 +284,7 @@ private constructor(
private var invoiceSettings: JsonField<InvoiceSettings>? = null
private var perUnitCostBasis: JsonField<String>? = null
private var threshold: JsonField<String>? = null
private var activeFrom: JsonField<OffsetDateTime> = JsonMissing.of()
private var expiresAfter: JsonField<Long> = JsonMissing.of()
private var expiresAfterUnit: JsonField<ExpiresAfterUnit> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
Expand All @@ -265,6 +296,7 @@ private constructor(
invoiceSettings = body.invoiceSettings
perUnitCostBasis = body.perUnitCostBasis
threshold = body.threshold
activeFrom = body.activeFrom
expiresAfter = body.expiresAfter
expiresAfterUnit = body.expiresAfterUnit
additionalProperties = body.additionalProperties.toMutableMap()
Expand Down Expand Up @@ -318,6 +350,28 @@ private constructor(
*/
fun threshold(threshold: JsonField<String>) = apply { this.threshold = threshold }

/**
* The date from which the top-up is active. If unspecified, the top-up is active
* immediately.
*/
fun activeFrom(activeFrom: OffsetDateTime?) =
activeFrom(JsonField.ofNullable(activeFrom))

/**
* The date from which the top-up is active. If unspecified, the top-up is active
* immediately.
*/
fun activeFrom(activeFrom: Optional<OffsetDateTime>) =
activeFrom(activeFrom.orElse(null))

/**
* The date from which the top-up is active. If unspecified, the top-up is active
* immediately.
*/
fun activeFrom(activeFrom: JsonField<OffsetDateTime>) = apply {
this.activeFrom = activeFrom
}

/**
* The number of days or months after which the top-up expires. If unspecified, it does
* not expire.
Expand Down Expand Up @@ -385,6 +439,7 @@ private constructor(
checkRequired("invoiceSettings", invoiceSettings),
checkRequired("perUnitCostBasis", perUnitCostBasis),
checkRequired("threshold", threshold),
activeFrom,
expiresAfter,
expiresAfterUnit,
additionalProperties.toImmutable(),
Expand All @@ -396,17 +451,17 @@ private constructor(
return true
}

return /* spotless:off */ other is Body && amount == other.amount && currency == other.currency && invoiceSettings == other.invoiceSettings && perUnitCostBasis == other.perUnitCostBasis && threshold == other.threshold && expiresAfter == other.expiresAfter && expiresAfterUnit == other.expiresAfterUnit && additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is Body && amount == other.amount && currency == other.currency && invoiceSettings == other.invoiceSettings && perUnitCostBasis == other.perUnitCostBasis && threshold == other.threshold && activeFrom == other.activeFrom && expiresAfter == other.expiresAfter && expiresAfterUnit == other.expiresAfterUnit && additionalProperties == other.additionalProperties /* spotless:on */
}

/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(amount, currency, invoiceSettings, perUnitCostBasis, threshold, expiresAfter, expiresAfterUnit, additionalProperties) }
private val hashCode: Int by lazy { Objects.hash(amount, currency, invoiceSettings, perUnitCostBasis, threshold, activeFrom, expiresAfter, expiresAfterUnit, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int = hashCode

override fun toString() =
"Body{amount=$amount, currency=$currency, invoiceSettings=$invoiceSettings, perUnitCostBasis=$perUnitCostBasis, threshold=$threshold, expiresAfter=$expiresAfter, expiresAfterUnit=$expiresAfterUnit, additionalProperties=$additionalProperties}"
"Body{amount=$amount, currency=$currency, invoiceSettings=$invoiceSettings, perUnitCostBasis=$perUnitCostBasis, threshold=$threshold, activeFrom=$activeFrom, expiresAfter=$expiresAfter, expiresAfterUnit=$expiresAfterUnit, additionalProperties=$additionalProperties}"
}

fun toBuilder() = Builder().from(this)
Expand Down Expand Up @@ -491,6 +546,26 @@ private constructor(
*/
fun threshold(threshold: JsonField<String>) = apply { body.threshold(threshold) }

/**
* The date from which the top-up is active. If unspecified, the top-up is active
* immediately.
*/
fun activeFrom(activeFrom: OffsetDateTime?) = apply { body.activeFrom(activeFrom) }

/**
* The date from which the top-up is active. If unspecified, the top-up is active
* immediately.
*/
fun activeFrom(activeFrom: Optional<OffsetDateTime>) = activeFrom(activeFrom.orElse(null))

/**
* The date from which the top-up is active. If unspecified, the top-up is active
* immediately.
*/
fun activeFrom(activeFrom: JsonField<OffsetDateTime>) = apply {
body.activeFrom(activeFrom)
}

/**
* The number of days or months after which the top-up expires. If unspecified, it does not
* expire.
Expand Down
Loading
Loading