diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 8ea07c9a..1b5dc400 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.38.0"
+ ".": "0.39.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index da919d93..5776427f 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -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
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1ba496a4..dc29c273 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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)
diff --git a/README.md b/README.md
index a3dc61b4..7ee11951 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
-[](https://central.sonatype.com/artifact/com.withorb.api/orb-java/0.38.0)
+[](https://central.sonatype.com/artifact/com.withorb.api/orb-java/0.39.0)
@@ -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
@@ -28,7 +28,7 @@ implementation("com.withorb.api:orb-java:0.38.0")
com.withorb.api
orb-java
- 0.38.0
+ 0.39.0
```
diff --git a/SECURITY.md b/SECURITY.md
index b32391b3..6f64d22c 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -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
diff --git a/build.gradle.kts b/build.gradle.kts
index b86d7012..0300a471 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -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
}
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/Invoice.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/Invoice.kt
index ee44692f..37afae5c 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/Invoice.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/Invoice.kt
@@ -4805,6 +4805,9 @@ private constructor(
@JsonProperty("end_date")
@ExcludeMissing
private val endDate: JsonField = JsonMissing.of(),
+ @JsonProperty("filter")
+ @ExcludeMissing
+ private val filter: JsonField = JsonMissing.of(),
@JsonProperty("grouping")
@ExcludeMissing
private val grouping: JsonField = JsonMissing.of(),
@@ -4844,6 +4847,9 @@ private constructor(
@JsonProperty("tax_amounts")
@ExcludeMissing
private val taxAmounts: JsonField> = JsonMissing.of(),
+ @JsonProperty("usage_customer_ids")
+ @ExcludeMissing
+ private val usageCustomerIds: JsonField> = JsonMissing.of(),
@JsonAnySetter
private val additionalProperties: Map = immutableEmptyMap(),
) {
@@ -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 = 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
@@ -4941,6 +4950,10 @@ private constructor(
*/
fun taxAmounts(): List = taxAmounts.getRequired("tax_amounts")
+ /** A list of customer ids that were used to calculate the usage for this line item. */
+ fun usageCustomerIds(): Optional> =
+ Optional.ofNullable(usageCustomerIds.getNullable("usage_customer_ids"))
+
/** A unique ID for this line item. */
@JsonProperty("id") @ExcludeMissing fun _id(): JsonField = id
@@ -4975,6 +4988,9 @@ private constructor(
@ExcludeMissing
fun _endDate(): JsonField = endDate
+ /** An additional filter that was used to calculate the usage for this line item. */
+ @JsonProperty("filter") @ExcludeMissing fun _filter(): JsonField = 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
@@ -5055,6 +5071,11 @@ private constructor(
@ExcludeMissing
fun _taxAmounts(): JsonField> = 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> = usageCustomerIds
+
@JsonAnyGetter
@ExcludeMissing
fun _additionalProperties(): Map = additionalProperties
@@ -5073,6 +5094,7 @@ private constructor(
creditsApplied()
discount().ifPresent { it.validate() }
endDate()
+ filter()
grouping()
maximum().ifPresent { it.validate() }
maximumAmount()
@@ -5086,6 +5108,7 @@ private constructor(
subLineItems().forEach { it.validate() }
subtotal()
taxAmounts().forEach { it.validate() }
+ usageCustomerIds()
validated = true
}
@@ -5106,6 +5129,7 @@ private constructor(
private var creditsApplied: JsonField? = null
private var discount: JsonField? = null
private var endDate: JsonField? = null
+ private var filter: JsonField? = null
private var grouping: JsonField? = null
private var maximum: JsonField? = null
private var maximumAmount: JsonField? = null
@@ -5119,6 +5143,7 @@ private constructor(
private var subLineItems: JsonField>? = null
private var subtotal: JsonField? = null
private var taxAmounts: JsonField>? = null
+ private var usageCustomerIds: JsonField>? = null
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -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
@@ -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()
}
@@ -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) = 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) = filter(filter.orElse(null))
+
+ /** An additional filter that was used to calculate the usage for this line item. */
+ fun filter(filter: JsonField) = 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
@@ -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?) =
+ usageCustomerIds(JsonField.ofNullable(usageCustomerIds))
+
+ /** A list of customer ids that were used to calculate the usage for this line item. */
+ fun usageCustomerIds(usageCustomerIds: Optional>) =
+ usageCustomerIds(usageCustomerIds.orElse(null))
+
+ /** A list of customer ids that were used to calculate the usage for this line item. */
+ fun usageCustomerIds(usageCustomerIds: JsonField>) = 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) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
@@ -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),
@@ -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(),
)
}
@@ -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
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponse.kt
index 329bfe48..9145ab80 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponse.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponse.kt
@@ -4798,6 +4798,9 @@ private constructor(
@JsonProperty("end_date")
@ExcludeMissing
private val endDate: JsonField = JsonMissing.of(),
+ @JsonProperty("filter")
+ @ExcludeMissing
+ private val filter: JsonField = JsonMissing.of(),
@JsonProperty("grouping")
@ExcludeMissing
private val grouping: JsonField = JsonMissing.of(),
@@ -4837,6 +4840,9 @@ private constructor(
@JsonProperty("tax_amounts")
@ExcludeMissing
private val taxAmounts: JsonField> = JsonMissing.of(),
+ @JsonProperty("usage_customer_ids")
+ @ExcludeMissing
+ private val usageCustomerIds: JsonField> = JsonMissing.of(),
@JsonAnySetter
private val additionalProperties: Map = immutableEmptyMap(),
) {
@@ -4867,6 +4873,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 = 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
@@ -4934,6 +4943,10 @@ private constructor(
*/
fun taxAmounts(): List = taxAmounts.getRequired("tax_amounts")
+ /** A list of customer ids that were used to calculate the usage for this line item. */
+ fun usageCustomerIds(): Optional> =
+ Optional.ofNullable(usageCustomerIds.getNullable("usage_customer_ids"))
+
/** A unique ID for this line item. */
@JsonProperty("id") @ExcludeMissing fun _id(): JsonField = id
@@ -4968,6 +4981,9 @@ private constructor(
@ExcludeMissing
fun _endDate(): JsonField = endDate
+ /** An additional filter that was used to calculate the usage for this line item. */
+ @JsonProperty("filter") @ExcludeMissing fun _filter(): JsonField = 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
@@ -5048,6 +5064,11 @@ private constructor(
@ExcludeMissing
fun _taxAmounts(): JsonField> = 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> = usageCustomerIds
+
@JsonAnyGetter
@ExcludeMissing
fun _additionalProperties(): Map = additionalProperties
@@ -5066,6 +5087,7 @@ private constructor(
creditsApplied()
discount().ifPresent { it.validate() }
endDate()
+ filter()
grouping()
maximum().ifPresent { it.validate() }
maximumAmount()
@@ -5079,6 +5101,7 @@ private constructor(
subLineItems().forEach { it.validate() }
subtotal()
taxAmounts().forEach { it.validate() }
+ usageCustomerIds()
validated = true
}
@@ -5099,6 +5122,7 @@ private constructor(
private var creditsApplied: JsonField? = null
private var discount: JsonField? = null
private var endDate: JsonField? = null
+ private var filter: JsonField? = null
private var grouping: JsonField? = null
private var maximum: JsonField? = null
private var maximumAmount: JsonField? = null
@@ -5112,6 +5136,7 @@ private constructor(
private var subLineItems: JsonField>? = null
private var subtotal: JsonField? = null
private var taxAmounts: JsonField>? = null
+ private var usageCustomerIds: JsonField>? = null
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -5123,6 +5148,7 @@ private constructor(
creditsApplied = lineItem.creditsApplied
discount = lineItem.discount
endDate = lineItem.endDate
+ filter = lineItem.filter
grouping = lineItem.grouping
maximum = lineItem.maximum
maximumAmount = lineItem.maximumAmount
@@ -5136,6 +5162,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()
}
@@ -5253,6 +5280,15 @@ private constructor(
/** The end date of the range of time applied for this line item's price. */
fun endDate(endDate: JsonField) = 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) = filter(filter.orElse(null))
+
+ /** An additional filter that was used to calculate the usage for this line item. */
+ fun filter(filter: JsonField) = 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
@@ -5903,6 +5939,33 @@ private constructor(
}
}
+ /** A list of customer ids that were used to calculate the usage for this line item. */
+ fun usageCustomerIds(usageCustomerIds: List?) =
+ usageCustomerIds(JsonField.ofNullable(usageCustomerIds))
+
+ /** A list of customer ids that were used to calculate the usage for this line item. */
+ fun usageCustomerIds(usageCustomerIds: Optional>) =
+ usageCustomerIds(usageCustomerIds.orElse(null))
+
+ /** A list of customer ids that were used to calculate the usage for this line item. */
+ fun usageCustomerIds(usageCustomerIds: JsonField>) = 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) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
@@ -5931,6 +5994,7 @@ private constructor(
checkRequired("creditsApplied", creditsApplied),
checkRequired("discount", discount),
checkRequired("endDate", endDate),
+ checkRequired("filter", filter),
checkRequired("grouping", grouping),
checkRequired("maximum", maximum),
checkRequired("maximumAmount", maximumAmount),
@@ -5944,6 +6008,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(),
)
}
@@ -10331,17 +10396,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
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponse.kt
index fcfa0b9c..de121ed0 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponse.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponse.kt
@@ -54,6 +54,9 @@ private constructor(
@JsonProperty("end_date")
@ExcludeMissing
private val endDate: JsonField = JsonMissing.of(),
+ @JsonProperty("filter")
+ @ExcludeMissing
+ private val filter: JsonField = JsonMissing.of(),
@JsonProperty("grouping")
@ExcludeMissing
private val grouping: JsonField = JsonMissing.of(),
@@ -89,6 +92,9 @@ private constructor(
@JsonProperty("tax_amounts")
@ExcludeMissing
private val taxAmounts: JsonField> = JsonMissing.of(),
+ @JsonProperty("usage_customer_ids")
+ @ExcludeMissing
+ private val usageCustomerIds: JsonField> = JsonMissing.of(),
@JsonAnySetter private val additionalProperties: Map = immutableEmptyMap(),
) {
@@ -118,6 +124,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 = 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 this particular
@@ -184,6 +193,10 @@ private constructor(
*/
fun taxAmounts(): List = taxAmounts.getRequired("tax_amounts")
+ /** A list of customer ids that were used to calculate the usage for this line item. */
+ fun usageCustomerIds(): Optional> =
+ Optional.ofNullable(usageCustomerIds.getNullable("usage_customer_ids"))
+
/** A unique ID for this line item. */
@JsonProperty("id") @ExcludeMissing fun _id(): JsonField = id
@@ -216,6 +229,9 @@ private constructor(
/** The end date of the range of time applied for this line item's price. */
@JsonProperty("end_date") @ExcludeMissing fun _endDate(): JsonField = endDate
+ /** An additional filter that was used to calculate the usage for this line item. */
+ @JsonProperty("filter") @ExcludeMissing fun _filter(): JsonField = 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 this particular
@@ -295,6 +311,11 @@ private constructor(
@ExcludeMissing
fun _taxAmounts(): JsonField> = 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> = usageCustomerIds
+
@JsonAnyGetter
@ExcludeMissing
fun _additionalProperties(): Map = additionalProperties
@@ -313,6 +334,7 @@ private constructor(
creditsApplied()
discount().ifPresent { it.validate() }
endDate()
+ filter()
grouping()
maximum().ifPresent { it.validate() }
maximumAmount()
@@ -326,6 +348,7 @@ private constructor(
subLineItems().forEach { it.validate() }
subtotal()
taxAmounts().forEach { it.validate() }
+ usageCustomerIds()
validated = true
}
@@ -346,6 +369,7 @@ private constructor(
private var creditsApplied: JsonField? = null
private var discount: JsonField? = null
private var endDate: JsonField? = null
+ private var filter: JsonField? = null
private var grouping: JsonField? = null
private var maximum: JsonField? = null
private var maximumAmount: JsonField? = null
@@ -359,6 +383,7 @@ private constructor(
private var subLineItems: JsonField>? = null
private var subtotal: JsonField? = null
private var taxAmounts: JsonField>? = null
+ private var usageCustomerIds: JsonField>? = null
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -370,6 +395,7 @@ private constructor(
creditsApplied = invoiceLineItemCreateResponse.creditsApplied
discount = invoiceLineItemCreateResponse.discount
endDate = invoiceLineItemCreateResponse.endDate
+ filter = invoiceLineItemCreateResponse.filter
grouping = invoiceLineItemCreateResponse.grouping
maximum = invoiceLineItemCreateResponse.maximum
maximumAmount = invoiceLineItemCreateResponse.maximumAmount
@@ -383,6 +409,8 @@ private constructor(
subLineItems = invoiceLineItemCreateResponse.subLineItems.map { it.toMutableList() }
subtotal = invoiceLineItemCreateResponse.subtotal
taxAmounts = invoiceLineItemCreateResponse.taxAmounts.map { it.toMutableList() }
+ usageCustomerIds =
+ invoiceLineItemCreateResponse.usageCustomerIds.map { it.toMutableList() }
additionalProperties = invoiceLineItemCreateResponse.additionalProperties.toMutableMap()
}
@@ -498,6 +526,15 @@ private constructor(
/** The end date of the range of time applied for this line item's price. */
fun endDate(endDate: JsonField) = 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) = filter(filter.orElse(null))
+
+ /** An additional filter that was used to calculate the usage for this line item. */
+ fun filter(filter: JsonField) = 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 for
@@ -1145,6 +1182,33 @@ private constructor(
}
}
+ /** A list of customer ids that were used to calculate the usage for this line item. */
+ fun usageCustomerIds(usageCustomerIds: List?) =
+ usageCustomerIds(JsonField.ofNullable(usageCustomerIds))
+
+ /** A list of customer ids that were used to calculate the usage for this line item. */
+ fun usageCustomerIds(usageCustomerIds: Optional>) =
+ usageCustomerIds(usageCustomerIds.orElse(null))
+
+ /** A list of customer ids that were used to calculate the usage for this line item. */
+ fun usageCustomerIds(usageCustomerIds: JsonField>) = 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) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
@@ -1173,6 +1237,7 @@ private constructor(
checkRequired("creditsApplied", creditsApplied),
checkRequired("discount", discount),
checkRequired("endDate", endDate),
+ checkRequired("filter", filter),
checkRequired("grouping", grouping),
checkRequired("maximum", maximum),
checkRequired("maximumAmount", maximumAmount),
@@ -1186,6 +1251,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(),
)
}
@@ -5500,15 +5566,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is InvoiceLineItemCreateResponse && 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 InvoiceLineItemCreateResponse && 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() =
- "InvoiceLineItemCreateResponse{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}"
+ "InvoiceLineItemCreateResponse{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}"
}
diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreateParamsTest.kt
index e7d07f42..c9c30408 100644
--- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreateParamsTest.kt
+++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreateParamsTest.kt
@@ -12,7 +12,7 @@ class CustomerCreateParamsTest {
@Test
fun create() {
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -92,7 +92,7 @@ class CustomerCreateParamsTest {
fun body() {
val params =
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -171,7 +171,7 @@ class CustomerCreateParamsTest {
val body = params._body()
assertNotNull(body)
- assertThat(body.email()).isEqualTo("dev@stainlessapi.com")
+ assertThat(body.email()).isEqualTo("dev@stainless.com")
assertThat(body.name()).isEqualTo("x")
assertThat(body.accountingSyncConfiguration())
.contains(
@@ -257,12 +257,12 @@ class CustomerCreateParamsTest {
@Test
fun bodyWithoutOptionalFields() {
- val params = CustomerCreateParams.builder().email("dev@stainlessapi.com").name("x").build()
+ val params = CustomerCreateParams.builder().email("dev@stainless.com").name("x").build()
val body = params._body()
assertNotNull(body)
- assertThat(body.email()).isEqualTo("dev@stainlessapi.com")
+ assertThat(body.email()).isEqualTo("dev@stainless.com")
assertThat(body.name()).isEqualTo("x")
}
}
diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParamsTest.kt
index 5f0cfb84..9fedb1e9 100644
--- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParamsTest.kt
+++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParamsTest.kt
@@ -39,7 +39,7 @@ class CustomerUpdateByExternalIdParamsTest {
.build()
)
.currency("currency")
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.emailDelivery(true)
.externalCustomerId("external_customer_id")
.hierarchy(
@@ -124,7 +124,7 @@ class CustomerUpdateByExternalIdParamsTest {
.build()
)
.currency("currency")
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.emailDelivery(true)
.externalCustomerId("external_customer_id")
.hierarchy(
@@ -209,7 +209,7 @@ class CustomerUpdateByExternalIdParamsTest {
.build()
)
assertThat(body.currency()).contains("currency")
- assertThat(body.email()).contains("dev@stainlessapi.com")
+ assertThat(body.email()).contains("dev@stainless.com")
assertThat(body.emailDelivery()).contains(true)
assertThat(body.externalCustomerId()).contains("external_customer_id")
assertThat(body.hierarchy())
diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateParamsTest.kt
index d258ede7..c9708dba 100644
--- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateParamsTest.kt
+++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateParamsTest.kt
@@ -38,7 +38,7 @@ class CustomerUpdateParamsTest {
.build()
)
.currency("currency")
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.emailDelivery(true)
.externalCustomerId("external_customer_id")
.hierarchy(
@@ -118,7 +118,7 @@ class CustomerUpdateParamsTest {
.build()
)
.currency("currency")
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.emailDelivery(true)
.externalCustomerId("external_customer_id")
.hierarchy(
@@ -198,7 +198,7 @@ class CustomerUpdateParamsTest {
.build()
)
assertThat(body.currency()).contains("currency")
- assertThat(body.email()).contains("dev@stainlessapi.com")
+ assertThat(body.email()).contains("dev@stainless.com")
assertThat(body.emailDelivery()).contains(true)
assertThat(body.externalCustomerId()).contains("external_customer_id")
assertThat(body.hierarchy())
diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponseTest.kt
index ea7eff47..15cc7641 100644
--- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponseTest.kt
+++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponseTest.kt
@@ -140,6 +140,7 @@ class InvoiceFetchUpcomingResponseTest {
.build()
)
.endDate(OffsetDateTime.parse("2022-02-01T08:00:00+00:00"))
+ .filter("filter")
.grouping("grouping")
.maximum(
InvoiceFetchUpcomingResponse.LineItem.Maximum.builder()
@@ -280,6 +281,7 @@ class InvoiceFetchUpcomingResponseTest {
.taxRatePercentage("tax_rate_percentage")
.build()
)
+ .addUsageCustomerId("string")
.build()
)
.maximum(
@@ -483,6 +485,7 @@ class InvoiceFetchUpcomingResponseTest {
.build()
)
.endDate(OffsetDateTime.parse("2022-02-01T08:00:00+00:00"))
+ .filter("filter")
.grouping("grouping")
.maximum(
InvoiceFetchUpcomingResponse.LineItem.Maximum.builder()
@@ -618,6 +621,7 @@ class InvoiceFetchUpcomingResponseTest {
.taxRatePercentage("tax_rate_percentage")
.build()
)
+ .addUsageCustomerId("string")
.build()
)
assertThat(invoiceFetchUpcomingResponse.maximum())
diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponseTest.kt
index f45611d9..63ddc662 100644
--- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponseTest.kt
+++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponseTest.kt
@@ -43,6 +43,7 @@ class InvoiceLineItemCreateResponseTest {
.build()
)
.endDate(OffsetDateTime.parse("2022-02-01T08:00:00+00:00"))
+ .filter("filter")
.grouping("grouping")
.maximum(
InvoiceLineItemCreateResponse.Maximum.builder()
@@ -169,6 +170,7 @@ class InvoiceLineItemCreateResponseTest {
.taxRatePercentage("tax_rate_percentage")
.build()
)
+ .addUsageCustomerId("string")
.build()
assertThat(invoiceLineItemCreateResponse).isNotNull
assertThat(invoiceLineItemCreateResponse.id()).isEqualTo("id")
@@ -208,6 +210,7 @@ class InvoiceLineItemCreateResponseTest {
)
assertThat(invoiceLineItemCreateResponse.endDate())
.isEqualTo(OffsetDateTime.parse("2022-02-01T08:00:00+00:00"))
+ assertThat(invoiceLineItemCreateResponse.filter()).contains("filter")
assertThat(invoiceLineItemCreateResponse.grouping()).contains("grouping")
assertThat(invoiceLineItemCreateResponse.maximum())
.contains(
@@ -344,5 +347,6 @@ class InvoiceLineItemCreateResponseTest {
.taxRatePercentage("tax_rate_percentage")
.build()
)
+ assertThat(invoiceLineItemCreateResponse.usageCustomerIds().get()).containsExactly("string")
}
}
diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceTest.kt
index ae8ac584..2a625cd7 100644
--- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceTest.kt
+++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceTest.kt
@@ -129,6 +129,7 @@ class InvoiceTest {
.build()
)
.endDate(OffsetDateTime.parse("2022-02-01T08:00:00+00:00"))
+ .filter("filter")
.grouping("grouping")
.maximum(
Invoice.LineItem.Maximum.builder()
@@ -259,6 +260,7 @@ class InvoiceTest {
.taxRatePercentage("tax_rate_percentage")
.build()
)
+ .addUsageCustomerId("string")
.build()
)
.maximum(
@@ -444,6 +446,7 @@ class InvoiceTest {
.build()
)
.endDate(OffsetDateTime.parse("2022-02-01T08:00:00+00:00"))
+ .filter("filter")
.grouping("grouping")
.maximum(
Invoice.LineItem.Maximum.builder()
@@ -571,6 +574,7 @@ class InvoiceTest {
.taxRatePercentage("tax_rate_percentage")
.build()
)
+ .addUsageCustomerId("string")
.build()
)
assertThat(invoice.maximum())
diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/ErrorHandlingTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/ErrorHandlingTest.kt
index 61f30eef..452c5add 100644
--- a/orb-java-core/src/test/kotlin/com/withorb/api/services/ErrorHandlingTest.kt
+++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/ErrorHandlingTest.kt
@@ -58,7 +58,7 @@ class ErrorHandlingTest {
fun customersCreate200() {
val params =
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -228,7 +228,7 @@ class ErrorHandlingTest {
fun customersCreate400() {
val params =
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -319,7 +319,7 @@ class ErrorHandlingTest {
fun customersCreate401() {
val params =
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -410,7 +410,7 @@ class ErrorHandlingTest {
fun customersCreate403() {
val params =
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -501,7 +501,7 @@ class ErrorHandlingTest {
fun customersCreate404() {
val params =
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -592,7 +592,7 @@ class ErrorHandlingTest {
fun customersCreate422() {
val params =
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -683,7 +683,7 @@ class ErrorHandlingTest {
fun customersCreate429() {
val params =
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -774,7 +774,7 @@ class ErrorHandlingTest {
fun customersCreate500() {
val params =
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -865,7 +865,7 @@ class ErrorHandlingTest {
fun unexpectedStatusCode() {
val params =
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -961,7 +961,7 @@ class ErrorHandlingTest {
fun invalidBody() {
val params =
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -1051,7 +1051,7 @@ class ErrorHandlingTest {
fun invalidErrorBody() {
val params =
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/ServiceParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/ServiceParamsTest.kt
index 3666dfb2..59b94c03 100644
--- a/orb-java-core/src/test/kotlin/com/withorb/api/services/ServiceParamsTest.kt
+++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/ServiceParamsTest.kt
@@ -40,7 +40,7 @@ internal class ServiceParamsTest {
customerService.create(
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/async/CustomerServiceAsyncTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/async/CustomerServiceAsyncTest.kt
index e48ab6b8..91d1a134 100644
--- a/orb-java-core/src/test/kotlin/com/withorb/api/services/async/CustomerServiceAsyncTest.kt
+++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/async/CustomerServiceAsyncTest.kt
@@ -31,7 +31,7 @@ class CustomerServiceAsyncTest {
val customerFuture =
customerServiceAsync.create(
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -150,7 +150,7 @@ class CustomerServiceAsyncTest {
.build()
)
.currency("currency")
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.emailDelivery(true)
.externalCustomerId("external_customer_id")
.hierarchy(
@@ -352,7 +352,7 @@ class CustomerServiceAsyncTest {
.build()
)
.currency("currency")
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.emailDelivery(true)
.externalCustomerId("external_customer_id")
.hierarchy(
diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CustomerServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CustomerServiceTest.kt
index 7d48b5f2..1cec0a8f 100644
--- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CustomerServiceTest.kt
+++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CustomerServiceTest.kt
@@ -31,7 +31,7 @@ class CustomerServiceTest {
val customer =
customerService.create(
CustomerCreateParams.builder()
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.name("x")
.accountingSyncConfiguration(
CustomerCreateParams.AccountingSyncConfiguration.builder()
@@ -149,7 +149,7 @@ class CustomerServiceTest {
.build()
)
.currency("currency")
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.emailDelivery(true)
.externalCustomerId("external_customer_id")
.hierarchy(
@@ -334,7 +334,7 @@ class CustomerServiceTest {
.build()
)
.currency("currency")
- .email("dev@stainlessapi.com")
+ .email("dev@stainless.com")
.emailDelivery(true)
.externalCustomerId("external_customer_id")
.hierarchy(