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.38.0"
".": "0.39.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-d4f03b16daf0bae33be634c959dafb0e21b0bcb156beb162f8235394dca88e7c.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c8fc7d0bf70bf7ed91a141f346a02929e4d25a6fac7b59f58b68136ed6ff024f.yml
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.39.0 (2025-03-01)

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

### Features

* **api:** api update ([#290](https://github.com/orbcorp/orb-java/issues/290)) ([e5a73e7](https://github.com/orbcorp/orb-java/commit/e5a73e781835f7d036324b85209f8386083f8d96))


### Documentation

* update URLs from stainlessapi.com to stainless.com ([#288](https://github.com/orbcorp/orb-java/issues/288)) ([c69a113](https://github.com/orbcorp/orb-java/commit/c69a11395282576f531395c7ec26a04d789a03d9))

## 0.38.0 (2025-02-27)

Full Changelog: [v0.37.0...v0.38.0](https://github.com/orbcorp/orb-java/compare/v0.37.0...v0.38.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.38.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.39.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.38.0")
implementation("com.withorb.api:orb-java:0.39.0")
```

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

Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Reporting Security Issues

This SDK is generated by [Stainless Software Inc](http://stainlessapi.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.

To report a security issue, please contact the Stainless team at security@stainlessapi.com.
To report a security issue, please contact the Stainless team at security@stainless.com.

## Responsible Disclosure

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.38.0" // x-release-please-version
version = "0.39.0" // x-release-please-version
}
71 changes: 68 additions & 3 deletions orb-java-core/src/main/kotlin/com/withorb/api/models/Invoice.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4805,6 +4805,9 @@ private constructor(
@JsonProperty("end_date")
@ExcludeMissing
private val endDate: JsonField<OffsetDateTime> = JsonMissing.of(),
@JsonProperty("filter")
@ExcludeMissing
private val filter: JsonField<String> = JsonMissing.of(),
@JsonProperty("grouping")
@ExcludeMissing
private val grouping: JsonField<String> = JsonMissing.of(),
Expand Down Expand Up @@ -4844,6 +4847,9 @@ private constructor(
@JsonProperty("tax_amounts")
@ExcludeMissing
private val taxAmounts: JsonField<List<TaxAmount>> = JsonMissing.of(),
@JsonProperty("usage_customer_ids")
@ExcludeMissing
private val usageCustomerIds: JsonField<List<String>> = JsonMissing.of(),
@JsonAnySetter
private val additionalProperties: Map<String, JsonValue> = immutableEmptyMap(),
) {
Expand Down Expand Up @@ -4874,6 +4880,9 @@ private constructor(
/** The end date of the range of time applied for this line item's price. */
fun endDate(): OffsetDateTime = endDate.getRequired("end_date")

/** An additional filter that was used to calculate the usage for this line item. */
fun filter(): Optional<String> = Optional.ofNullable(filter.getNullable("filter"))

/**
* [DEPRECATED] For configured prices that are split by a grouping key, this will be
* populated with the key and a value. The `amount` and `subtotal` will be the values for
Expand Down Expand Up @@ -4941,6 +4950,10 @@ private constructor(
*/
fun taxAmounts(): List<TaxAmount> = taxAmounts.getRequired("tax_amounts")

/** A list of customer ids that were used to calculate the usage for this line item. */
fun usageCustomerIds(): Optional<List<String>> =
Optional.ofNullable(usageCustomerIds.getNullable("usage_customer_ids"))

/** A unique ID for this line item. */
@JsonProperty("id") @ExcludeMissing fun _id(): JsonField<String> = id

Expand Down Expand Up @@ -4975,6 +4988,9 @@ private constructor(
@ExcludeMissing
fun _endDate(): JsonField<OffsetDateTime> = endDate

/** An additional filter that was used to calculate the usage for this line item. */
@JsonProperty("filter") @ExcludeMissing fun _filter(): JsonField<String> = filter

/**
* [DEPRECATED] For configured prices that are split by a grouping key, this will be
* populated with the key and a value. The `amount` and `subtotal` will be the values for
Expand Down Expand Up @@ -5055,6 +5071,11 @@ private constructor(
@ExcludeMissing
fun _taxAmounts(): JsonField<List<TaxAmount>> = taxAmounts

/** A list of customer ids that were used to calculate the usage for this line item. */
@JsonProperty("usage_customer_ids")
@ExcludeMissing
fun _usageCustomerIds(): JsonField<List<String>> = usageCustomerIds

@JsonAnyGetter
@ExcludeMissing
fun _additionalProperties(): Map<String, JsonValue> = additionalProperties
Expand All @@ -5073,6 +5094,7 @@ private constructor(
creditsApplied()
discount().ifPresent { it.validate() }
endDate()
filter()
grouping()
maximum().ifPresent { it.validate() }
maximumAmount()
Expand All @@ -5086,6 +5108,7 @@ private constructor(
subLineItems().forEach { it.validate() }
subtotal()
taxAmounts().forEach { it.validate() }
usageCustomerIds()
validated = true
}

Expand All @@ -5106,6 +5129,7 @@ private constructor(
private var creditsApplied: JsonField<String>? = null
private var discount: JsonField<Discount>? = null
private var endDate: JsonField<OffsetDateTime>? = null
private var filter: JsonField<String>? = null
private var grouping: JsonField<String>? = null
private var maximum: JsonField<Maximum>? = null
private var maximumAmount: JsonField<String>? = null
Expand All @@ -5119,6 +5143,7 @@ private constructor(
private var subLineItems: JsonField<MutableList<SubLineItem>>? = null
private var subtotal: JsonField<String>? = null
private var taxAmounts: JsonField<MutableList<TaxAmount>>? = null
private var usageCustomerIds: JsonField<MutableList<String>>? = null
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
Expand All @@ -5130,6 +5155,7 @@ private constructor(
creditsApplied = lineItem.creditsApplied
discount = lineItem.discount
endDate = lineItem.endDate
filter = lineItem.filter
grouping = lineItem.grouping
maximum = lineItem.maximum
maximumAmount = lineItem.maximumAmount
Expand All @@ -5143,6 +5169,7 @@ private constructor(
subLineItems = lineItem.subLineItems.map { it.toMutableList() }
subtotal = lineItem.subtotal
taxAmounts = lineItem.taxAmounts.map { it.toMutableList() }
usageCustomerIds = lineItem.usageCustomerIds.map { it.toMutableList() }
additionalProperties = lineItem.additionalProperties.toMutableMap()
}

Expand Down Expand Up @@ -5260,6 +5287,15 @@ private constructor(
/** The end date of the range of time applied for this line item's price. */
fun endDate(endDate: JsonField<OffsetDateTime>) = apply { this.endDate = endDate }

/** An additional filter that was used to calculate the usage for this line item. */
fun filter(filter: String?) = filter(JsonField.ofNullable(filter))

/** An additional filter that was used to calculate the usage for this line item. */
fun filter(filter: Optional<String>) = filter(filter.orElse(null))

/** An additional filter that was used to calculate the usage for this line item. */
fun filter(filter: JsonField<String>) = apply { this.filter = filter }

/**
* [DEPRECATED] For configured prices that are split by a grouping key, this will be
* populated with the key and a value. The `amount` and `subtotal` will be the values
Expand Down Expand Up @@ -5910,6 +5946,33 @@ private constructor(
}
}

/** A list of customer ids that were used to calculate the usage for this line item. */
fun usageCustomerIds(usageCustomerIds: List<String>?) =
usageCustomerIds(JsonField.ofNullable(usageCustomerIds))

/** A list of customer ids that were used to calculate the usage for this line item. */
fun usageCustomerIds(usageCustomerIds: Optional<List<String>>) =
usageCustomerIds(usageCustomerIds.orElse(null))

/** A list of customer ids that were used to calculate the usage for this line item. */
fun usageCustomerIds(usageCustomerIds: JsonField<List<String>>) = apply {
this.usageCustomerIds = usageCustomerIds.map { it.toMutableList() }
}

/** A list of customer ids that were used to calculate the usage for this line item. */
fun addUsageCustomerId(usageCustomerId: String) = apply {
usageCustomerIds =
(usageCustomerIds ?: JsonField.of(mutableListOf())).apply {
asKnown()
.orElseThrow {
IllegalStateException(
"Field was set to non-list type: ${javaClass.simpleName}"
)
}
.add(usageCustomerId)
}
}

fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
Expand Down Expand Up @@ -5938,6 +6001,7 @@ private constructor(
checkRequired("creditsApplied", creditsApplied),
checkRequired("discount", discount),
checkRequired("endDate", endDate),
checkRequired("filter", filter),
checkRequired("grouping", grouping),
checkRequired("maximum", maximum),
checkRequired("maximumAmount", maximumAmount),
Expand All @@ -5951,6 +6015,7 @@ private constructor(
checkRequired("subLineItems", subLineItems).map { it.toImmutable() },
checkRequired("subtotal", subtotal),
checkRequired("taxAmounts", taxAmounts).map { it.toImmutable() },
checkRequired("usageCustomerIds", usageCustomerIds).map { it.toImmutable() },
additionalProperties.toImmutable(),
)
}
Expand Down Expand Up @@ -10338,17 +10403,17 @@ private constructor(
return true
}

return /* spotless:off */ other is LineItem && id == other.id && adjustedSubtotal == other.adjustedSubtotal && adjustments == other.adjustments && amount == other.amount && creditsApplied == other.creditsApplied && discount == other.discount && endDate == other.endDate && grouping == other.grouping && maximum == other.maximum && maximumAmount == other.maximumAmount && minimum == other.minimum && minimumAmount == other.minimumAmount && name == other.name && partiallyInvoicedAmount == other.partiallyInvoicedAmount && price == other.price && quantity == other.quantity && startDate == other.startDate && subLineItems == other.subLineItems && subtotal == other.subtotal && taxAmounts == other.taxAmounts && additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is LineItem && id == other.id && adjustedSubtotal == other.adjustedSubtotal && adjustments == other.adjustments && amount == other.amount && creditsApplied == other.creditsApplied && discount == other.discount && endDate == other.endDate && filter == other.filter && grouping == other.grouping && maximum == other.maximum && maximumAmount == other.maximumAmount && minimum == other.minimum && minimumAmount == other.minimumAmount && name == other.name && partiallyInvoicedAmount == other.partiallyInvoicedAmount && price == other.price && quantity == other.quantity && startDate == other.startDate && subLineItems == other.subLineItems && subtotal == other.subtotal && taxAmounts == other.taxAmounts && usageCustomerIds == other.usageCustomerIds && additionalProperties == other.additionalProperties /* spotless:on */
}

/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(id, adjustedSubtotal, adjustments, amount, creditsApplied, discount, endDate, grouping, maximum, maximumAmount, minimum, minimumAmount, name, partiallyInvoicedAmount, price, quantity, startDate, subLineItems, subtotal, taxAmounts, additionalProperties) }
private val hashCode: Int by lazy { Objects.hash(id, adjustedSubtotal, adjustments, amount, creditsApplied, discount, endDate, filter, grouping, maximum, maximumAmount, minimum, minimumAmount, name, partiallyInvoicedAmount, price, quantity, startDate, subLineItems, subtotal, taxAmounts, usageCustomerIds, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int = hashCode

override fun toString() =
"LineItem{id=$id, adjustedSubtotal=$adjustedSubtotal, adjustments=$adjustments, amount=$amount, creditsApplied=$creditsApplied, discount=$discount, endDate=$endDate, grouping=$grouping, maximum=$maximum, maximumAmount=$maximumAmount, minimum=$minimum, minimumAmount=$minimumAmount, name=$name, partiallyInvoicedAmount=$partiallyInvoicedAmount, price=$price, quantity=$quantity, startDate=$startDate, subLineItems=$subLineItems, subtotal=$subtotal, taxAmounts=$taxAmounts, additionalProperties=$additionalProperties}"
"LineItem{id=$id, adjustedSubtotal=$adjustedSubtotal, adjustments=$adjustments, amount=$amount, creditsApplied=$creditsApplied, discount=$discount, endDate=$endDate, filter=$filter, grouping=$grouping, maximum=$maximum, maximumAmount=$maximumAmount, minimum=$minimum, minimumAmount=$minimumAmount, name=$name, partiallyInvoicedAmount=$partiallyInvoicedAmount, price=$price, quantity=$quantity, startDate=$startDate, subLineItems=$subLineItems, subtotal=$subtotal, taxAmounts=$taxAmounts, usageCustomerIds=$usageCustomerIds, additionalProperties=$additionalProperties}"
}

@NoAutoDetect
Expand Down
Loading
Loading