diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 93f2c0fea..51177e063 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -67,7 +67,7 @@ jobs:
- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/orb-java'
id: github-oidc
- uses: actions/github-script@v6
+ uses: actions/github-script@v8
with:
script: core.setOutput('github_token', await core.getIDToken());
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index eb4e0dba7..caf148712 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "1.10.0"
+ ".": "1.11.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 666bff36b..2fd311799 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
-configured_endpoints: 126
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c131de17773b450eb1ec03ca001f94d3777e35347234869a7efee083003e1513.yml
-openapi_spec_hash: 5d2d4a3a9ada1c381efb318b6897994d
-config_hash: bcf82bddb691f6be773ac6cae8c03b9a
+configured_endpoints: 139
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-3c7ee3ec9931aaeeb5e015a598812cde9edc09f114adb8759ef4c2054c90f7dc.yml
+openapi_spec_hash: a14720041156fe4f353449142edacf0d
+config_hash: 3279841440b02d4e8303c961d6983492
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2985ce5a0..3b96db16c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,44 @@
# Changelog
+## 1.11.0 (2026-02-18)
+
+Full Changelog: [v1.10.0...v1.11.0](https://github.com/orbcorp/orb-java/compare/v1.10.0...v1.11.0)
+
+### Features
+
+* **api:** api update ([3b82472](https://github.com/orbcorp/orb-java/commit/3b8247255097a5250b47059ca568429a26e0f285))
+* **api:** api update ([c310e36](https://github.com/orbcorp/orb-java/commit/c310e36ffe22fafdd5ba9a00728e7816a8d0e1e6))
+* **api:** api update ([a80ec0b](https://github.com/orbcorp/orb-java/commit/a80ec0b34dabf9595dbae9dfc4b4ed6c914cf5d2))
+* **api:** api update ([69429b9](https://github.com/orbcorp/orb-java/commit/69429b99a2aa15ce52ebd45f7a2a531395f3dc94))
+* **api:** api update ([49d56e2](https://github.com/orbcorp/orb-java/commit/49d56e2d1ef966ebf6ad4508c81b43a19e7cf9c5))
+* **api:** api update ([1e5f897](https://github.com/orbcorp/orb-java/commit/1e5f8972d4dd8c4c955e8980b0c83901a2594bd6))
+* **api:** api update ([eaca79d](https://github.com/orbcorp/orb-java/commit/eaca79da23a8cad0430abcb0319c8a37a5bbfc2a))
+* **api:** manual updates ([5ba9c33](https://github.com/orbcorp/orb-java/commit/5ba9c33bba4f76344046e7cd93946fe96befaf34))
+* **client:** send `X-Stainless-Kotlin-Version` header ([10357a9](https://github.com/orbcorp/orb-java/commit/10357a946d98ffd0cb26409f81af477b4c4638b2))
+
+
+### Bug Fixes
+
+* **client:** preserve time zone in lenient date-time parsing ([928bfae](https://github.com/orbcorp/orb-java/commit/928bfae14d9e8353f052404bf80873f1bd60d167))
+
+
+### Chores
+
+* **ci:** upgrade `actions/github-script` ([7850067](https://github.com/orbcorp/orb-java/commit/7850067ac12719de79ff00ada02962f035782791))
+* **internal:** allow passing args to `./scripts/test` ([ffbc747](https://github.com/orbcorp/orb-java/commit/ffbc7473823b4ea0ccd27b9cfb85f8a5c165bb47))
+* **internal:** codegen related update ([489bdd6](https://github.com/orbcorp/orb-java/commit/489bdd632da69ee3bafce9d5364861821f235c2b))
+* **internal:** codegen related update ([b8b2251](https://github.com/orbcorp/orb-java/commit/b8b2251ef940a4d3a5276a9287bfc628fcc7fa2b))
+* **internal:** codegen related update ([46abca4](https://github.com/orbcorp/orb-java/commit/46abca478b99884a07ac874f56f5ab7f615d9162))
+* **internal:** correct cache invalidation for `SKIP_MOCK_TESTS` ([4a49c05](https://github.com/orbcorp/orb-java/commit/4a49c05fd112adb44adebff7481d4076ede46058))
+* **internal:** update `TestServerExtension` comment ([3447469](https://github.com/orbcorp/orb-java/commit/34474693bac76cf4855636d09bac7001108f2ccc))
+* **internal:** update maven repo doc to include authentication ([9aa3e27](https://github.com/orbcorp/orb-java/commit/9aa3e2745cf3794784ee229af579142c6d560182))
+* **internal:** upgrade AssertJ ([719f036](https://github.com/orbcorp/orb-java/commit/719f036e81d72bf5c80a3e53de1e6fcdee49f15e))
+
+
+### Documentation
+
+* add comment for arbitrary value fields ([e2f42d1](https://github.com/orbcorp/orb-java/commit/e2f42d1f5d5b951c50798e943a64e14ff134b4f2))
+
## 1.10.0 (2026-01-17)
Full Changelog: [v1.9.0...v1.10.0](https://github.com/orbcorp/orb-java/compare/v1.9.0...v1.10.0)
diff --git a/README.md b/README.md
index be99484ce..441159b99 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
-[](https://central.sonatype.com/artifact/com.withorb.api/orb-java/1.10.0)
+[](https://central.sonatype.com/artifact/com.withorb.api/orb-java/1.11.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:1.10.0")
+implementation("com.withorb.api:orb-java:1.11.0")
```
### Maven
@@ -28,7 +28,7 @@ implementation("com.withorb.api:orb-java:1.10.0")
com.withorb.api
orb-java
- 1.10.0
+ 1.11.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 8e1585b2b..81989492b 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,6 +1,6 @@
allprojects {
group = "com.withorb.api"
- version = "1.10.0" // x-release-please-version
+ version = "1.11.0" // x-release-please-version
}
subprojects {
diff --git a/buildSrc/src/main/kotlin/orb.kotlin.gradle.kts b/buildSrc/src/main/kotlin/orb.kotlin.gradle.kts
index b908b3bed..78bb0bbc3 100644
--- a/buildSrc/src/main/kotlin/orb.kotlin.gradle.kts
+++ b/buildSrc/src/main/kotlin/orb.kotlin.gradle.kts
@@ -33,6 +33,9 @@ kotlin {
tasks.withType().configureEach {
systemProperty("junit.jupiter.execution.parallel.enabled", true)
systemProperty("junit.jupiter.execution.parallel.mode.default", "concurrent")
+
+ // `SKIP_MOCK_TESTS` affects which tests run so it must be added as input for proper cache invalidation.
+ inputs.property("skipMockTests", System.getenv("SKIP_MOCK_TESTS")).optional(true)
}
val ktfmt by configurations.creating
diff --git a/examples/.keep b/examples/.keep
deleted file mode 100644
index d8c73e937..000000000
--- a/examples/.keep
+++ /dev/null
@@ -1,4 +0,0 @@
-File generated from our OpenAPI spec by Stainless.
-
-This directory can be used to store example files demonstrating usage of this SDK.
-It is ignored by Stainless code generation and its content (other than this keep file) won't be touched.
\ No newline at end of file
diff --git a/orb-java-client-okhttp/build.gradle.kts b/orb-java-client-okhttp/build.gradle.kts
index 856cade40..e2241172b 100644
--- a/orb-java-client-okhttp/build.gradle.kts
+++ b/orb-java-client-okhttp/build.gradle.kts
@@ -10,6 +10,6 @@ dependencies {
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
testImplementation(kotlin("test"))
- testImplementation("org.assertj:assertj-core:3.25.3")
+ testImplementation("org.assertj:assertj-core:3.27.7")
testImplementation("com.github.tomakehurst:wiremock-jre8:2.35.2")
}
diff --git a/orb-java-core/build.gradle.kts b/orb-java-core/build.gradle.kts
index 086a58f55..3ab9a87a7 100644
--- a/orb-java-core/build.gradle.kts
+++ b/orb-java-core/build.gradle.kts
@@ -33,7 +33,7 @@ dependencies {
testImplementation(kotlin("test"))
testImplementation(project(":orb-java-client-okhttp"))
testImplementation("com.github.tomakehurst:wiremock-jre8:2.35.2")
- testImplementation("org.assertj:assertj-core:3.25.3")
+ testImplementation("org.assertj:assertj-core:3.27.7")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.3")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.9.3")
testImplementation("org.junit-pioneer:junit-pioneer:1.9.1")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClient.kt b/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClient.kt
index b3cc3efcc..b646ad9e4 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClient.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClient.kt
@@ -14,6 +14,8 @@ import com.withorb.api.services.blocking.EventService
import com.withorb.api.services.blocking.InvoiceLineItemService
import com.withorb.api.services.blocking.InvoiceService
import com.withorb.api.services.blocking.ItemService
+import com.withorb.api.services.blocking.LicenseService
+import com.withorb.api.services.blocking.LicenseTypeService
import com.withorb.api.services.blocking.MetricService
import com.withorb.api.services.blocking.PlanService
import com.withorb.api.services.blocking.PriceService
@@ -95,6 +97,10 @@ interface OrbClient {
fun creditBlocks(): CreditBlockService
+ fun licenseTypes(): LicenseTypeService
+
+ fun licenses(): LicenseService
+
/**
* Closes this client, relinquishing any underlying resources.
*
@@ -151,5 +157,9 @@ interface OrbClient {
fun subscriptionChanges(): SubscriptionChangeService.WithRawResponse
fun creditBlocks(): CreditBlockService.WithRawResponse
+
+ fun licenseTypes(): LicenseTypeService.WithRawResponse
+
+ fun licenses(): LicenseService.WithRawResponse
}
}
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClientAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClientAsync.kt
index a8b535120..6959d23c4 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClientAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClientAsync.kt
@@ -14,6 +14,8 @@ import com.withorb.api.services.async.EventServiceAsync
import com.withorb.api.services.async.InvoiceLineItemServiceAsync
import com.withorb.api.services.async.InvoiceServiceAsync
import com.withorb.api.services.async.ItemServiceAsync
+import com.withorb.api.services.async.LicenseServiceAsync
+import com.withorb.api.services.async.LicenseTypeServiceAsync
import com.withorb.api.services.async.MetricServiceAsync
import com.withorb.api.services.async.PlanServiceAsync
import com.withorb.api.services.async.PriceServiceAsync
@@ -92,6 +94,10 @@ interface OrbClientAsync {
fun creditBlocks(): CreditBlockServiceAsync
+ fun licenseTypes(): LicenseTypeServiceAsync
+
+ fun licenses(): LicenseServiceAsync
+
/**
* Closes this client, relinquishing any underlying resources.
*
@@ -148,5 +154,9 @@ interface OrbClientAsync {
fun subscriptionChanges(): SubscriptionChangeServiceAsync.WithRawResponse
fun creditBlocks(): CreditBlockServiceAsync.WithRawResponse
+
+ fun licenseTypes(): LicenseTypeServiceAsync.WithRawResponse
+
+ fun licenses(): LicenseServiceAsync.WithRawResponse
}
}
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClientAsyncImpl.kt b/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClientAsyncImpl.kt
index ba4b5c44a..66311a15b 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClientAsyncImpl.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClientAsyncImpl.kt
@@ -26,6 +26,10 @@ import com.withorb.api.services.async.InvoiceServiceAsync
import com.withorb.api.services.async.InvoiceServiceAsyncImpl
import com.withorb.api.services.async.ItemServiceAsync
import com.withorb.api.services.async.ItemServiceAsyncImpl
+import com.withorb.api.services.async.LicenseServiceAsync
+import com.withorb.api.services.async.LicenseServiceAsyncImpl
+import com.withorb.api.services.async.LicenseTypeServiceAsync
+import com.withorb.api.services.async.LicenseTypeServiceAsyncImpl
import com.withorb.api.services.async.MetricServiceAsync
import com.withorb.api.services.async.MetricServiceAsyncImpl
import com.withorb.api.services.async.PlanServiceAsync
@@ -119,6 +123,14 @@ class OrbClientAsyncImpl(private val clientOptions: ClientOptions) : OrbClientAs
CreditBlockServiceAsyncImpl(clientOptionsWithUserAgent)
}
+ private val licenseTypes: LicenseTypeServiceAsync by lazy {
+ LicenseTypeServiceAsyncImpl(clientOptionsWithUserAgent)
+ }
+
+ private val licenses: LicenseServiceAsync by lazy {
+ LicenseServiceAsyncImpl(clientOptionsWithUserAgent)
+ }
+
override fun sync(): OrbClient = sync
override fun withRawResponse(): OrbClientAsync.WithRawResponse = withRawResponse
@@ -161,6 +173,10 @@ class OrbClientAsyncImpl(private val clientOptions: ClientOptions) : OrbClientAs
override fun creditBlocks(): CreditBlockServiceAsync = creditBlocks
+ override fun licenseTypes(): LicenseTypeServiceAsync = licenseTypes
+
+ override fun licenses(): LicenseServiceAsync = licenses
+
override fun close() = clientOptions.close()
class WithRawResponseImpl internal constructor(private val clientOptions: ClientOptions) :
@@ -235,6 +251,14 @@ class OrbClientAsyncImpl(private val clientOptions: ClientOptions) : OrbClientAs
CreditBlockServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}
+ private val licenseTypes: LicenseTypeServiceAsync.WithRawResponse by lazy {
+ LicenseTypeServiceAsyncImpl.WithRawResponseImpl(clientOptions)
+ }
+
+ private val licenses: LicenseServiceAsync.WithRawResponse by lazy {
+ LicenseServiceAsyncImpl.WithRawResponseImpl(clientOptions)
+ }
+
override fun withOptions(
modifier: Consumer
): OrbClientAsync.WithRawResponse =
@@ -278,5 +302,9 @@ class OrbClientAsyncImpl(private val clientOptions: ClientOptions) : OrbClientAs
subscriptionChanges
override fun creditBlocks(): CreditBlockServiceAsync.WithRawResponse = creditBlocks
+
+ override fun licenseTypes(): LicenseTypeServiceAsync.WithRawResponse = licenseTypes
+
+ override fun licenses(): LicenseServiceAsync.WithRawResponse = licenses
}
}
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClientImpl.kt b/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClientImpl.kt
index 4fa187d47..5a3aca0d4 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClientImpl.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClientImpl.kt
@@ -26,6 +26,10 @@ import com.withorb.api.services.blocking.InvoiceService
import com.withorb.api.services.blocking.InvoiceServiceImpl
import com.withorb.api.services.blocking.ItemService
import com.withorb.api.services.blocking.ItemServiceImpl
+import com.withorb.api.services.blocking.LicenseService
+import com.withorb.api.services.blocking.LicenseServiceImpl
+import com.withorb.api.services.blocking.LicenseTypeService
+import com.withorb.api.services.blocking.LicenseTypeServiceImpl
import com.withorb.api.services.blocking.MetricService
import com.withorb.api.services.blocking.MetricServiceImpl
import com.withorb.api.services.blocking.PlanService
@@ -111,6 +115,12 @@ class OrbClientImpl(private val clientOptions: ClientOptions) : OrbClient {
CreditBlockServiceImpl(clientOptionsWithUserAgent)
}
+ private val licenseTypes: LicenseTypeService by lazy {
+ LicenseTypeServiceImpl(clientOptionsWithUserAgent)
+ }
+
+ private val licenses: LicenseService by lazy { LicenseServiceImpl(clientOptionsWithUserAgent) }
+
override fun async(): OrbClientAsync = async
override fun withRawResponse(): OrbClient.WithRawResponse = withRawResponse
@@ -154,6 +164,10 @@ class OrbClientImpl(private val clientOptions: ClientOptions) : OrbClient {
override fun creditBlocks(): CreditBlockService = creditBlocks
+ override fun licenseTypes(): LicenseTypeService = licenseTypes
+
+ override fun licenses(): LicenseService = licenses
+
override fun close() = clientOptions.close()
class WithRawResponseImpl internal constructor(private val clientOptions: ClientOptions) :
@@ -227,6 +241,14 @@ class OrbClientImpl(private val clientOptions: ClientOptions) : OrbClient {
CreditBlockServiceImpl.WithRawResponseImpl(clientOptions)
}
+ private val licenseTypes: LicenseTypeService.WithRawResponse by lazy {
+ LicenseTypeServiceImpl.WithRawResponseImpl(clientOptions)
+ }
+
+ private val licenses: LicenseService.WithRawResponse by lazy {
+ LicenseServiceImpl.WithRawResponseImpl(clientOptions)
+ }
+
override fun withOptions(
modifier: Consumer
): OrbClient.WithRawResponse =
@@ -269,5 +291,9 @@ class OrbClientImpl(private val clientOptions: ClientOptions) : OrbClient {
subscriptionChanges
override fun creditBlocks(): CreditBlockService.WithRawResponse = creditBlocks
+
+ override fun licenseTypes(): LicenseTypeService.WithRawResponse = licenseTypes
+
+ override fun licenses(): LicenseService.WithRawResponse = licenses
}
}
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/core/ClientOptions.kt b/orb-java-core/src/main/kotlin/com/withorb/api/core/ClientOptions.kt
index cd66b87cb..1de772314 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/core/ClientOptions.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/core/ClientOptions.kt
@@ -463,6 +463,7 @@ private constructor(
headers.put("X-Stainless-Package-Version", getPackageVersion())
headers.put("X-Stainless-Runtime", "JRE")
headers.put("X-Stainless-Runtime-Version", getJavaVersion())
+ headers.put("X-Stainless-Kotlin-Version", KotlinVersion.CURRENT.toString())
apiKey.let {
if (!it.isEmpty()) {
headers.put("Authorization", "Bearer $it")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/core/ObjectMappers.kt b/orb-java-core/src/main/kotlin/com/withorb/api/core/ObjectMappers.kt
index 1373ca6ce..575d791e3 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/core/ObjectMappers.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/core/ObjectMappers.kt
@@ -25,7 +25,7 @@ import java.time.DateTimeException
import java.time.LocalDate
import java.time.LocalDateTime
import java.time.OffsetDateTime
-import java.time.ZonedDateTime
+import java.time.ZoneId
import java.time.format.DateTimeFormatter
import java.time.temporal.ChronoField
@@ -157,14 +157,15 @@ private class LenientOffsetDateTimeDeserializer :
val temporal = formatter.parse(p.text)
return when {
- !temporal.isSupported(ChronoField.HOUR_OF_DAY) ->
- LocalDate.from(temporal).atStartOfDay()
- !temporal.isSupported(ChronoField.OFFSET_SECONDS) ->
- LocalDateTime.from(temporal)
- else -> ZonedDateTime.from(temporal).toLocalDateTime()
- }
- .atZone(context.timeZone.toZoneId())
- .toOffsetDateTime()
+ !temporal.isSupported(ChronoField.HOUR_OF_DAY) ->
+ LocalDate.from(temporal)
+ .atStartOfDay()
+ .atZone(ZoneId.of("UTC"))
+ .toOffsetDateTime()
+ !temporal.isSupported(ChronoField.OFFSET_SECONDS) ->
+ LocalDateTime.from(temporal).atZone(ZoneId.of("UTC")).toOffsetDateTime()
+ else -> OffsetDateTime.from(temporal)
+ }
} catch (e: DateTimeException) {
exceptions.add(e)
}
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/Alert.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/Alert.kt
index f35084b4a..040e2d06a 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/Alert.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/Alert.kt
@@ -41,6 +41,7 @@ private constructor(
private val thresholds: JsonField>,
private val type: JsonField,
private val balanceAlertStatus: JsonField>,
+ private val licenseType: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -67,6 +68,9 @@ private constructor(
@JsonProperty("balance_alert_status")
@ExcludeMissing
balanceAlertStatus: JsonField> = JsonMissing.of(),
+ @JsonProperty("license_type")
+ @ExcludeMissing
+ licenseType: JsonField = JsonMissing.of(),
) : this(
id,
createdAt,
@@ -79,6 +83,7 @@ private constructor(
thresholds,
type,
balanceAlertStatus,
+ licenseType,
mutableMapOf(),
)
@@ -171,6 +176,14 @@ private constructor(
fun balanceAlertStatus(): Optional> =
balanceAlertStatus.getOptional("balance_alert_status")
+ /**
+ * Minified license type for alert serialization.
+ *
+ * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the server
+ * responded with an unexpected value).
+ */
+ fun licenseType(): Optional = licenseType.getOptional("license_type")
+
/**
* Returns the raw JSON value of [id].
*
@@ -259,6 +272,15 @@ private constructor(
@ExcludeMissing
fun _balanceAlertStatus(): JsonField> = balanceAlertStatus
+ /**
+ * Returns the raw JSON value of [licenseType].
+ *
+ * Unlike [licenseType], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("license_type")
+ @ExcludeMissing
+ fun _licenseType(): JsonField = licenseType
+
@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
@@ -307,6 +329,7 @@ private constructor(
private var thresholds: JsonField>? = null
private var type: JsonField? = null
private var balanceAlertStatus: JsonField>? = null
+ private var licenseType: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -322,6 +345,7 @@ private constructor(
thresholds = alert.thresholds.map { it.toMutableList() }
type = alert.type
balanceAlertStatus = alert.balanceAlertStatus.map { it.toMutableList() }
+ licenseType = alert.licenseType
additionalProperties = alert.additionalProperties.toMutableMap()
}
@@ -510,6 +534,23 @@ private constructor(
}
}
+ /** Minified license type for alert serialization. */
+ fun licenseType(licenseType: LicenseType?) = licenseType(JsonField.ofNullable(licenseType))
+
+ /** Alias for calling [Builder.licenseType] with `licenseType.orElse(null)`. */
+ fun licenseType(licenseType: Optional) = licenseType(licenseType.getOrNull())
+
+ /**
+ * Sets [Builder.licenseType] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.licenseType] with a well-typed [LicenseType] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun licenseType(licenseType: JsonField) = apply {
+ this.licenseType = licenseType
+ }
+
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
@@ -563,6 +604,7 @@ private constructor(
checkRequired("thresholds", thresholds).map { it.toImmutable() },
checkRequired("type", type),
(balanceAlertStatus ?: JsonMissing.of()).map { it.toImmutable() },
+ licenseType,
additionalProperties.toMutableMap(),
)
}
@@ -585,6 +627,7 @@ private constructor(
thresholds().ifPresent { it.forEach { it.validate() } }
type().validate()
balanceAlertStatus().ifPresent { it.forEach { it.validate() } }
+ licenseType().ifPresent { it.validate() }
validated = true
}
@@ -613,7 +656,8 @@ private constructor(
(subscription.asKnown().getOrNull()?.validity() ?: 0) +
(thresholds.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
(type.asKnown().getOrNull()?.validity() ?: 0) +
- (balanceAlertStatus.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0)
+ (balanceAlertStatus.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
+ (licenseType.asKnown().getOrNull()?.validity() ?: 0)
/** The metric the alert applies to. */
class Metric
@@ -1089,6 +1133,9 @@ private constructor(
@JvmField val COST_EXCEEDED = of("cost_exceeded")
+ @JvmField
+ val LICENSE_BALANCE_THRESHOLD_REACHED = of("license_balance_threshold_reached")
+
@JvmStatic fun of(value: String) = Type(JsonField.of(value))
}
@@ -1099,6 +1146,7 @@ private constructor(
CREDIT_BALANCE_RECOVERED,
USAGE_EXCEEDED,
COST_EXCEEDED,
+ LICENSE_BALANCE_THRESHOLD_REACHED,
}
/**
@@ -1116,6 +1164,7 @@ private constructor(
CREDIT_BALANCE_RECOVERED,
USAGE_EXCEEDED,
COST_EXCEEDED,
+ LICENSE_BALANCE_THRESHOLD_REACHED,
/** An enum member indicating that [Type] was instantiated with an unknown value. */
_UNKNOWN,
}
@@ -1134,6 +1183,7 @@ private constructor(
CREDIT_BALANCE_RECOVERED -> Value.CREDIT_BALANCE_RECOVERED
USAGE_EXCEEDED -> Value.USAGE_EXCEEDED
COST_EXCEEDED -> Value.COST_EXCEEDED
+ LICENSE_BALANCE_THRESHOLD_REACHED -> Value.LICENSE_BALANCE_THRESHOLD_REACHED
else -> Value._UNKNOWN
}
@@ -1152,6 +1202,7 @@ private constructor(
CREDIT_BALANCE_RECOVERED -> Known.CREDIT_BALANCE_RECOVERED
USAGE_EXCEEDED -> Known.USAGE_EXCEEDED
COST_EXCEEDED -> Known.COST_EXCEEDED
+ LICENSE_BALANCE_THRESHOLD_REACHED -> Known.LICENSE_BALANCE_THRESHOLD_REACHED
else -> throw OrbInvalidDataException("Unknown Type: $value")
}
@@ -1418,6 +1469,159 @@ private constructor(
"BalanceAlertStatus{inAlert=$inAlert, thresholdValue=$thresholdValue, additionalProperties=$additionalProperties}"
}
+ /** Minified license type for alert serialization. */
+ class LicenseType
+ @JsonCreator(mode = JsonCreator.Mode.DISABLED)
+ private constructor(
+ private val id: JsonField,
+ private val additionalProperties: MutableMap,
+ ) {
+
+ @JsonCreator
+ private constructor(
+ @JsonProperty("id") @ExcludeMissing id: JsonField = JsonMissing.of()
+ ) : this(id, mutableMapOf())
+
+ /**
+ * @throws OrbInvalidDataException if the JSON field has an unexpected type or is
+ * unexpectedly missing or null (e.g. if the server responded with an unexpected value).
+ */
+ fun id(): String = id.getRequired("id")
+
+ /**
+ * Returns the raw JSON value of [id].
+ *
+ * Unlike [id], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("id") @ExcludeMissing fun _id(): JsonField = id
+
+ @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 [LicenseType].
+ *
+ * The following fields are required:
+ * ```java
+ * .id()
+ * ```
+ */
+ @JvmStatic fun builder() = Builder()
+ }
+
+ /** A builder for [LicenseType]. */
+ class Builder internal constructor() {
+
+ private var id: JsonField? = null
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(licenseType: LicenseType) = apply {
+ id = licenseType.id
+ additionalProperties = licenseType.additionalProperties.toMutableMap()
+ }
+
+ fun id(id: String) = id(JsonField.of(id))
+
+ /**
+ * Sets [Builder.id] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.id] with a well-typed [String] value instead. This
+ * method is primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun id(id: JsonField) = apply { this.id = id }
+
+ 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 [LicenseType].
+ *
+ * Further updates to this [Builder] will not mutate the returned instance.
+ *
+ * The following fields are required:
+ * ```java
+ * .id()
+ * ```
+ *
+ * @throws IllegalStateException if any required field is unset.
+ */
+ fun build(): LicenseType =
+ LicenseType(checkRequired("id", id), additionalProperties.toMutableMap())
+ }
+
+ private var validated: Boolean = false
+
+ fun validate(): LicenseType = apply {
+ if (validated) {
+ return@apply
+ }
+
+ id()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: OrbInvalidDataException) {
+ 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 (id.asKnown().isPresent) 1 else 0)
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is LicenseType &&
+ id == other.id &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy { Objects.hash(id, additionalProperties) }
+
+ override fun hashCode(): Int = hashCode
+
+ override fun toString() = "LicenseType{id=$id, additionalProperties=$additionalProperties}"
+ }
+
override fun equals(other: Any?): Boolean {
if (this === other) {
return true
@@ -1435,6 +1639,7 @@ private constructor(
thresholds == other.thresholds &&
type == other.type &&
balanceAlertStatus == other.balanceAlertStatus &&
+ licenseType == other.licenseType &&
additionalProperties == other.additionalProperties
}
@@ -1451,6 +1656,7 @@ private constructor(
thresholds,
type,
balanceAlertStatus,
+ licenseType,
additionalProperties,
)
}
@@ -1458,5 +1664,5 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "Alert{id=$id, createdAt=$createdAt, currency=$currency, customer=$customer, enabled=$enabled, metric=$metric, plan=$plan, subscription=$subscription, thresholds=$thresholds, type=$type, balanceAlertStatus=$balanceAlertStatus, additionalProperties=$additionalProperties}"
+ "Alert{id=$id, createdAt=$createdAt, currency=$currency, customer=$customer, enabled=$enabled, metric=$metric, plan=$plan, subscription=$subscription, thresholds=$thresholds, type=$type, balanceAlertStatus=$balanceAlertStatus, licenseType=$licenseType, additionalProperties=$additionalProperties}"
}
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/Allocation.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/Allocation.kt
index ab6fd5234..88898a4d7 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/Allocation.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/Allocation.kt
@@ -27,6 +27,7 @@ private constructor(
private val currency: JsonField,
private val customExpiration: JsonField,
private val filters: JsonField>,
+ private val licenseTypeId: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -39,8 +40,13 @@ private constructor(
@JsonProperty("custom_expiration")
@ExcludeMissing
customExpiration: JsonField = JsonMissing.of(),
- @JsonProperty("filters") @ExcludeMissing filters: JsonField> = JsonMissing.of(),
- ) : this(allowsRollover, currency, customExpiration, filters, mutableMapOf())
+ @JsonProperty("filters")
+ @ExcludeMissing
+ filters: JsonField> = JsonMissing.of(),
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ licenseTypeId: JsonField = JsonMissing.of(),
+ ) : this(allowsRollover, currency, customExpiration, filters, licenseTypeId, mutableMapOf())
/**
* @throws OrbInvalidDataException if the JSON field has an unexpected type or is unexpectedly
@@ -67,6 +73,12 @@ private constructor(
*/
fun filters(): Optional> = filters.getOptional("filters")
+ /**
+ * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the server
+ * responded with an unexpected value).
+ */
+ fun licenseTypeId(): Optional = licenseTypeId.getOptional("license_type_id")
+
/**
* Returns the raw JSON value of [allowsRollover].
*
@@ -100,6 +112,15 @@ private constructor(
*/
@JsonProperty("filters") @ExcludeMissing fun _filters(): JsonField> = filters
+ /**
+ * Returns the raw JSON value of [licenseTypeId].
+ *
+ * Unlike [licenseTypeId], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ fun _licenseTypeId(): JsonField = licenseTypeId
+
@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
@@ -134,6 +155,7 @@ private constructor(
private var currency: JsonField? = null
private var customExpiration: JsonField? = null
private var filters: JsonField>? = null
+ private var licenseTypeId: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -142,6 +164,7 @@ private constructor(
currency = allocation.currency
customExpiration = allocation.customExpiration
filters = allocation.filters.map { it.toMutableList() }
+ licenseTypeId = allocation.licenseTypeId
additionalProperties = allocation.additionalProperties.toMutableMap()
}
@@ -211,6 +234,24 @@ private constructor(
}
}
+ fun licenseTypeId(licenseTypeId: String?) =
+ licenseTypeId(JsonField.ofNullable(licenseTypeId))
+
+ /** Alias for calling [Builder.licenseTypeId] with `licenseTypeId.orElse(null)`. */
+ fun licenseTypeId(licenseTypeId: Optional) =
+ licenseTypeId(licenseTypeId.getOrNull())
+
+ /**
+ * Sets [Builder.licenseTypeId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.licenseTypeId] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun licenseTypeId(licenseTypeId: JsonField) = apply {
+ this.licenseTypeId = licenseTypeId
+ }
+
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
@@ -250,6 +291,7 @@ private constructor(
checkRequired("currency", currency),
checkRequired("customExpiration", customExpiration),
(filters ?: JsonMissing.of()).map { it.toImmutable() },
+ licenseTypeId,
additionalProperties.toMutableMap(),
)
}
@@ -265,6 +307,7 @@ private constructor(
currency()
customExpiration().ifPresent { it.validate() }
filters().ifPresent { it.forEach { it.validate() } }
+ licenseTypeId()
validated = true
}
@@ -286,7 +329,8 @@ private constructor(
(if (allowsRollover.asKnown().isPresent) 1 else 0) +
(if (currency.asKnown().isPresent) 1 else 0) +
(customExpiration.asKnown().getOrNull()?.validity() ?: 0) +
- (filters.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0)
+ (filters.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
+ (if (licenseTypeId.asKnown().isPresent) 1 else 0)
class Filter
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
@@ -828,15 +872,23 @@ private constructor(
currency == other.currency &&
customExpiration == other.customExpiration &&
filters == other.filters &&
+ licenseTypeId == other.licenseTypeId &&
additionalProperties == other.additionalProperties
}
private val hashCode: Int by lazy {
- Objects.hash(allowsRollover, currency, customExpiration, filters, additionalProperties)
+ Objects.hash(
+ allowsRollover,
+ currency,
+ customExpiration,
+ filters,
+ licenseTypeId,
+ additionalProperties,
+ )
}
override fun hashCode(): Int = hashCode
override fun toString() =
- "Allocation{allowsRollover=$allowsRollover, currency=$currency, customExpiration=$customExpiration, filters=$filters, additionalProperties=$additionalProperties}"
+ "Allocation{allowsRollover=$allowsRollover, currency=$currency, customExpiration=$customExpiration, filters=$filters, licenseTypeId=$licenseTypeId, additionalProperties=$additionalProperties}"
}
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaCreatePlanVersionParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaCreatePlanVersionParams.kt
index c52a84d0c..fd05c6dd2 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaCreatePlanVersionParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaCreatePlanVersionParams.kt
@@ -3464,6 +3464,7 @@ private constructor(
private val fixedPriceQuantity: JsonField,
private val invoiceGroupingKey: JsonField,
private val invoicingCycleConfiguration: JsonField,
+ private val licenseTypeId: JsonField,
private val metadata: JsonField,
private val referenceId: JsonField,
private val additionalProperties: MutableMap,
@@ -3522,6 +3523,9 @@ private constructor(
@ExcludeMissing
invoicingCycleConfiguration: JsonField =
JsonMissing.of(),
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ licenseTypeId: JsonField = JsonMissing.of(),
@JsonProperty("metadata")
@ExcludeMissing
metadata: JsonField = JsonMissing.of(),
@@ -3545,6 +3549,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
mutableMapOf(),
@@ -3704,6 +3709,14 @@ private constructor(
fun invoicingCycleConfiguration(): Optional =
invoicingCycleConfiguration.getOptional("invoicing_cycle_configuration")
+ /**
+ * The ID of the license type to associate with this price.
+ *
+ * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun licenseTypeId(): Optional = licenseTypeId.getOptional("license_type_id")
+
/**
* User-specified key/value pairs for the resource. Individual keys can be removed
* by setting the value to `null`, and the entire metadata mapping can be cleared by
@@ -3873,6 +3886,16 @@ private constructor(
fun _invoicingCycleConfiguration(): JsonField =
invoicingCycleConfiguration
+ /**
+ * Returns the raw JSON value of [licenseTypeId].
+ *
+ * Unlike [licenseTypeId], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ fun _licenseTypeId(): JsonField = licenseTypeId
+
/**
* Returns the raw JSON value of [metadata].
*
@@ -3946,6 +3969,7 @@ private constructor(
private var invoicingCycleConfiguration:
JsonField =
JsonMissing.of()
+ private var licenseTypeId: JsonField = JsonMissing.of()
private var metadata: JsonField = JsonMissing.of()
private var referenceId: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -3969,6 +3993,7 @@ private constructor(
fixedPriceQuantity = bulkWithFilters.fixedPriceQuantity
invoiceGroupingKey = bulkWithFilters.invoiceGroupingKey
invoicingCycleConfiguration = bulkWithFilters.invoicingCycleConfiguration
+ licenseTypeId = bulkWithFilters.licenseTypeId
metadata = bulkWithFilters.metadata
referenceId = bulkWithFilters.referenceId
additionalProperties = bulkWithFilters.additionalProperties.toMutableMap()
@@ -4387,6 +4412,27 @@ private constructor(
invoicingCycleConfiguration: JsonField
) = apply { this.invoicingCycleConfiguration = invoicingCycleConfiguration }
+ /** The ID of the license type to associate with this price. */
+ fun licenseTypeId(licenseTypeId: String?) =
+ licenseTypeId(JsonField.ofNullable(licenseTypeId))
+
+ /**
+ * Alias for calling [Builder.licenseTypeId] with `licenseTypeId.orElse(null)`.
+ */
+ fun licenseTypeId(licenseTypeId: Optional) =
+ licenseTypeId(licenseTypeId.getOrNull())
+
+ /**
+ * Sets [Builder.licenseTypeId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.licenseTypeId] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
+ */
+ fun licenseTypeId(licenseTypeId: JsonField) = apply {
+ this.licenseTypeId = licenseTypeId
+ }
+
/**
* User-specified key/value pairs for the resource. Individual keys can be
* removed by setting the value to `null`, and the entire metadata mapping can
@@ -4483,6 +4529,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties.toMutableMap(),
@@ -4516,6 +4563,7 @@ private constructor(
fixedPriceQuantity()
invoiceGroupingKey()
invoicingCycleConfiguration().ifPresent { it.validate() }
+ licenseTypeId()
metadata().ifPresent { it.validate() }
referenceId()
validated = true
@@ -4553,6 +4601,7 @@ private constructor(
(if (fixedPriceQuantity.asKnown().isPresent) 1 else 0) +
(if (invoiceGroupingKey.asKnown().isPresent) 1 else 0) +
(invoicingCycleConfiguration.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (licenseTypeId.asKnown().isPresent) 1 else 0) +
(metadata.asKnown().getOrNull()?.validity() ?: 0) +
(if (referenceId.asKnown().isPresent) 1 else 0)
@@ -5550,6 +5599,7 @@ private constructor(
fixedPriceQuantity == other.fixedPriceQuantity &&
invoiceGroupingKey == other.invoiceGroupingKey &&
invoicingCycleConfiguration == other.invoicingCycleConfiguration &&
+ licenseTypeId == other.licenseTypeId &&
metadata == other.metadata &&
referenceId == other.referenceId &&
additionalProperties == other.additionalProperties
@@ -5573,6 +5623,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties,
@@ -5582,7 +5633,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "BulkWithFilters{bulkWithFiltersConfig=$bulkWithFiltersConfig, cadence=$cadence, itemId=$itemId, modelType=$modelType, name=$name, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
+ "BulkWithFilters{bulkWithFiltersConfig=$bulkWithFiltersConfig, cadence=$cadence, itemId=$itemId, modelType=$modelType, name=$name, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, licenseTypeId=$licenseTypeId, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
}
class TieredWithProration
@@ -5605,6 +5656,7 @@ private constructor(
private val fixedPriceQuantity: JsonField,
private val invoiceGroupingKey: JsonField,
private val invoicingCycleConfiguration: JsonField,
+ private val licenseTypeId: JsonField,
private val metadata: JsonField,
private val referenceId: JsonField,
private val additionalProperties: MutableMap,
@@ -5664,6 +5716,9 @@ private constructor(
@ExcludeMissing
invoicingCycleConfiguration: JsonField =
JsonMissing.of(),
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ licenseTypeId: JsonField = JsonMissing.of(),
@JsonProperty("metadata")
@ExcludeMissing
metadata: JsonField = JsonMissing.of(),
@@ -5687,6 +5742,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
mutableMapOf(),
@@ -5846,6 +5902,14 @@ private constructor(
fun invoicingCycleConfiguration(): Optional =
invoicingCycleConfiguration.getOptional("invoicing_cycle_configuration")
+ /**
+ * The ID of the license type to associate with this price.
+ *
+ * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun licenseTypeId(): Optional = licenseTypeId.getOptional("license_type_id")
+
/**
* User-specified key/value pairs for the resource. Individual keys can be removed
* by setting the value to `null`, and the entire metadata mapping can be cleared by
@@ -6015,6 +6079,16 @@ private constructor(
fun _invoicingCycleConfiguration(): JsonField =
invoicingCycleConfiguration
+ /**
+ * Returns the raw JSON value of [licenseTypeId].
+ *
+ * Unlike [licenseTypeId], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ fun _licenseTypeId(): JsonField = licenseTypeId
+
/**
* Returns the raw JSON value of [metadata].
*
@@ -6090,6 +6164,7 @@ private constructor(
private var invoicingCycleConfiguration:
JsonField =
JsonMissing.of()
+ private var licenseTypeId: JsonField = JsonMissing.of()
private var metadata: JsonField = JsonMissing.of()
private var referenceId: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -6114,6 +6189,7 @@ private constructor(
invoiceGroupingKey = tieredWithProration.invoiceGroupingKey
invoicingCycleConfiguration =
tieredWithProration.invoicingCycleConfiguration
+ licenseTypeId = tieredWithProration.licenseTypeId
metadata = tieredWithProration.metadata
referenceId = tieredWithProration.referenceId
additionalProperties =
@@ -6534,6 +6610,27 @@ private constructor(
invoicingCycleConfiguration: JsonField
) = apply { this.invoicingCycleConfiguration = invoicingCycleConfiguration }
+ /** The ID of the license type to associate with this price. */
+ fun licenseTypeId(licenseTypeId: String?) =
+ licenseTypeId(JsonField.ofNullable(licenseTypeId))
+
+ /**
+ * Alias for calling [Builder.licenseTypeId] with `licenseTypeId.orElse(null)`.
+ */
+ fun licenseTypeId(licenseTypeId: Optional) =
+ licenseTypeId(licenseTypeId.getOrNull())
+
+ /**
+ * Sets [Builder.licenseTypeId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.licenseTypeId] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
+ */
+ fun licenseTypeId(licenseTypeId: JsonField) = apply {
+ this.licenseTypeId = licenseTypeId
+ }
+
/**
* User-specified key/value pairs for the resource. Individual keys can be
* removed by setting the value to `null`, and the entire metadata mapping can
@@ -6630,6 +6727,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties.toMutableMap(),
@@ -6663,6 +6761,7 @@ private constructor(
fixedPriceQuantity()
invoiceGroupingKey()
invoicingCycleConfiguration().ifPresent { it.validate() }
+ licenseTypeId()
metadata().ifPresent { it.validate() }
referenceId()
validated = true
@@ -6702,6 +6801,7 @@ private constructor(
(if (fixedPriceQuantity.asKnown().isPresent) 1 else 0) +
(if (invoiceGroupingKey.asKnown().isPresent) 1 else 0) +
(invoicingCycleConfiguration.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (licenseTypeId.asKnown().isPresent) 1 else 0) +
(metadata.asKnown().getOrNull()?.validity() ?: 0) +
(if (referenceId.asKnown().isPresent) 1 else 0)
@@ -7416,6 +7516,7 @@ private constructor(
fixedPriceQuantity == other.fixedPriceQuantity &&
invoiceGroupingKey == other.invoiceGroupingKey &&
invoicingCycleConfiguration == other.invoicingCycleConfiguration &&
+ licenseTypeId == other.licenseTypeId &&
metadata == other.metadata &&
referenceId == other.referenceId &&
additionalProperties == other.additionalProperties
@@ -7439,6 +7540,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties,
@@ -7448,7 +7550,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "TieredWithProration{cadence=$cadence, itemId=$itemId, modelType=$modelType, name=$name, tieredWithProrationConfig=$tieredWithProrationConfig, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
+ "TieredWithProration{cadence=$cadence, itemId=$itemId, modelType=$modelType, name=$name, tieredWithProrationConfig=$tieredWithProrationConfig, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, licenseTypeId=$licenseTypeId, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
}
class GroupedWithMinMaxThresholds
@@ -7472,6 +7574,7 @@ private constructor(
private val fixedPriceQuantity: JsonField,
private val invoiceGroupingKey: JsonField,
private val invoicingCycleConfiguration: JsonField,
+ private val licenseTypeId: JsonField,
private val metadata: JsonField,
private val referenceId: JsonField,
private val additionalProperties: MutableMap,
@@ -7532,6 +7635,9 @@ private constructor(
@ExcludeMissing
invoicingCycleConfiguration: JsonField =
JsonMissing.of(),
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ licenseTypeId: JsonField = JsonMissing.of(),
@JsonProperty("metadata")
@ExcludeMissing
metadata: JsonField = JsonMissing.of(),
@@ -7555,6 +7661,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
mutableMapOf(),
@@ -7716,6 +7823,14 @@ private constructor(
fun invoicingCycleConfiguration(): Optional =
invoicingCycleConfiguration.getOptional("invoicing_cycle_configuration")
+ /**
+ * The ID of the license type to associate with this price.
+ *
+ * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun licenseTypeId(): Optional = licenseTypeId.getOptional("license_type_id")
+
/**
* User-specified key/value pairs for the resource. Individual keys can be removed
* by setting the value to `null`, and the entire metadata mapping can be cleared by
@@ -7885,6 +8000,16 @@ private constructor(
fun _invoicingCycleConfiguration(): JsonField =
invoicingCycleConfiguration
+ /**
+ * Returns the raw JSON value of [licenseTypeId].
+ *
+ * Unlike [licenseTypeId], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ fun _licenseTypeId(): JsonField = licenseTypeId
+
/**
* Returns the raw JSON value of [metadata].
*
@@ -7962,6 +8087,7 @@ private constructor(
private var invoicingCycleConfiguration:
JsonField =
JsonMissing.of()
+ private var licenseTypeId: JsonField = JsonMissing.of()
private var metadata: JsonField = JsonMissing.of()
private var referenceId: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -7989,6 +8115,7 @@ private constructor(
invoiceGroupingKey = groupedWithMinMaxThresholds.invoiceGroupingKey
invoicingCycleConfiguration =
groupedWithMinMaxThresholds.invoicingCycleConfiguration
+ licenseTypeId = groupedWithMinMaxThresholds.licenseTypeId
metadata = groupedWithMinMaxThresholds.metadata
referenceId = groupedWithMinMaxThresholds.referenceId
additionalProperties =
@@ -8416,6 +8543,27 @@ private constructor(
invoicingCycleConfiguration: JsonField
) = apply { this.invoicingCycleConfiguration = invoicingCycleConfiguration }
+ /** The ID of the license type to associate with this price. */
+ fun licenseTypeId(licenseTypeId: String?) =
+ licenseTypeId(JsonField.ofNullable(licenseTypeId))
+
+ /**
+ * Alias for calling [Builder.licenseTypeId] with `licenseTypeId.orElse(null)`.
+ */
+ fun licenseTypeId(licenseTypeId: Optional) =
+ licenseTypeId(licenseTypeId.getOrNull())
+
+ /**
+ * Sets [Builder.licenseTypeId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.licenseTypeId] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
+ */
+ fun licenseTypeId(licenseTypeId: JsonField) = apply {
+ this.licenseTypeId = licenseTypeId
+ }
+
/**
* User-specified key/value pairs for the resource. Individual keys can be
* removed by setting the value to `null`, and the entire metadata mapping can
@@ -8515,6 +8663,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties.toMutableMap(),
@@ -8548,6 +8697,7 @@ private constructor(
fixedPriceQuantity()
invoiceGroupingKey()
invoicingCycleConfiguration().ifPresent { it.validate() }
+ licenseTypeId()
metadata().ifPresent { it.validate() }
referenceId()
validated = true
@@ -8587,6 +8737,7 @@ private constructor(
(if (fixedPriceQuantity.asKnown().isPresent) 1 else 0) +
(if (invoiceGroupingKey.asKnown().isPresent) 1 else 0) +
(invoicingCycleConfiguration.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (licenseTypeId.asKnown().isPresent) 1 else 0) +
(metadata.asKnown().getOrNull()?.validity() ?: 0) +
(if (referenceId.asKnown().isPresent) 1 else 0)
@@ -9209,6 +9360,7 @@ private constructor(
fixedPriceQuantity == other.fixedPriceQuantity &&
invoiceGroupingKey == other.invoiceGroupingKey &&
invoicingCycleConfiguration == other.invoicingCycleConfiguration &&
+ licenseTypeId == other.licenseTypeId &&
metadata == other.metadata &&
referenceId == other.referenceId &&
additionalProperties == other.additionalProperties
@@ -9232,6 +9384,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties,
@@ -9241,7 +9394,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "GroupedWithMinMaxThresholds{cadence=$cadence, groupedWithMinMaxThresholdsConfig=$groupedWithMinMaxThresholdsConfig, itemId=$itemId, modelType=$modelType, name=$name, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
+ "GroupedWithMinMaxThresholds{cadence=$cadence, groupedWithMinMaxThresholdsConfig=$groupedWithMinMaxThresholdsConfig, itemId=$itemId, modelType=$modelType, name=$name, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, licenseTypeId=$licenseTypeId, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
}
class CumulativeGroupedAllocation
@@ -9265,6 +9418,7 @@ private constructor(
private val fixedPriceQuantity: JsonField,
private val invoiceGroupingKey: JsonField,
private val invoicingCycleConfiguration: JsonField,
+ private val licenseTypeId: JsonField,
private val metadata: JsonField,
private val referenceId: JsonField,
private val additionalProperties: MutableMap,
@@ -9325,6 +9479,9 @@ private constructor(
@ExcludeMissing
invoicingCycleConfiguration: JsonField =
JsonMissing.of(),
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ licenseTypeId: JsonField = JsonMissing.of(),
@JsonProperty("metadata")
@ExcludeMissing
metadata: JsonField = JsonMissing.of(),
@@ -9348,6 +9505,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
mutableMapOf(),
@@ -9509,6 +9667,14 @@ private constructor(
fun invoicingCycleConfiguration(): Optional =
invoicingCycleConfiguration.getOptional("invoicing_cycle_configuration")
+ /**
+ * The ID of the license type to associate with this price.
+ *
+ * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun licenseTypeId(): Optional = licenseTypeId.getOptional("license_type_id")
+
/**
* User-specified key/value pairs for the resource. Individual keys can be removed
* by setting the value to `null`, and the entire metadata mapping can be cleared by
@@ -9678,6 +9844,16 @@ private constructor(
fun _invoicingCycleConfiguration(): JsonField =
invoicingCycleConfiguration
+ /**
+ * Returns the raw JSON value of [licenseTypeId].
+ *
+ * Unlike [licenseTypeId], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ fun _licenseTypeId(): JsonField = licenseTypeId
+
/**
* Returns the raw JSON value of [metadata].
*
@@ -9755,6 +9931,7 @@ private constructor(
private var invoicingCycleConfiguration:
JsonField =
JsonMissing.of()
+ private var licenseTypeId: JsonField = JsonMissing.of()
private var metadata: JsonField = JsonMissing.of()
private var referenceId: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -9782,6 +9959,7 @@ private constructor(
invoiceGroupingKey = cumulativeGroupedAllocation.invoiceGroupingKey
invoicingCycleConfiguration =
cumulativeGroupedAllocation.invoicingCycleConfiguration
+ licenseTypeId = cumulativeGroupedAllocation.licenseTypeId
metadata = cumulativeGroupedAllocation.metadata
referenceId = cumulativeGroupedAllocation.referenceId
additionalProperties =
@@ -10209,6 +10387,27 @@ private constructor(
invoicingCycleConfiguration: JsonField
) = apply { this.invoicingCycleConfiguration = invoicingCycleConfiguration }
+ /** The ID of the license type to associate with this price. */
+ fun licenseTypeId(licenseTypeId: String?) =
+ licenseTypeId(JsonField.ofNullable(licenseTypeId))
+
+ /**
+ * Alias for calling [Builder.licenseTypeId] with `licenseTypeId.orElse(null)`.
+ */
+ fun licenseTypeId(licenseTypeId: Optional) =
+ licenseTypeId(licenseTypeId.getOrNull())
+
+ /**
+ * Sets [Builder.licenseTypeId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.licenseTypeId] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
+ */
+ fun licenseTypeId(licenseTypeId: JsonField) = apply {
+ this.licenseTypeId = licenseTypeId
+ }
+
/**
* User-specified key/value pairs for the resource. Individual keys can be
* removed by setting the value to `null`, and the entire metadata mapping can
@@ -10308,6 +10507,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties.toMutableMap(),
@@ -10341,6 +10541,7 @@ private constructor(
fixedPriceQuantity()
invoiceGroupingKey()
invoicingCycleConfiguration().ifPresent { it.validate() }
+ licenseTypeId()
metadata().ifPresent { it.validate() }
referenceId()
validated = true
@@ -10380,6 +10581,7 @@ private constructor(
(if (fixedPriceQuantity.asKnown().isPresent) 1 else 0) +
(if (invoiceGroupingKey.asKnown().isPresent) 1 else 0) +
(invoicingCycleConfiguration.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (licenseTypeId.asKnown().isPresent) 1 else 0) +
(metadata.asKnown().getOrNull()?.validity() ?: 0) +
(if (referenceId.asKnown().isPresent) 1 else 0)
@@ -11009,6 +11211,7 @@ private constructor(
fixedPriceQuantity == other.fixedPriceQuantity &&
invoiceGroupingKey == other.invoiceGroupingKey &&
invoicingCycleConfiguration == other.invoicingCycleConfiguration &&
+ licenseTypeId == other.licenseTypeId &&
metadata == other.metadata &&
referenceId == other.referenceId &&
additionalProperties == other.additionalProperties
@@ -11032,6 +11235,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties,
@@ -11041,7 +11245,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "CumulativeGroupedAllocation{cadence=$cadence, cumulativeGroupedAllocationConfig=$cumulativeGroupedAllocationConfig, itemId=$itemId, modelType=$modelType, name=$name, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
+ "CumulativeGroupedAllocation{cadence=$cadence, cumulativeGroupedAllocationConfig=$cumulativeGroupedAllocationConfig, itemId=$itemId, modelType=$modelType, name=$name, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, licenseTypeId=$licenseTypeId, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
}
class Percent
@@ -11064,6 +11268,7 @@ private constructor(
private val fixedPriceQuantity: JsonField,
private val invoiceGroupingKey: JsonField,
private val invoicingCycleConfiguration: JsonField,
+ private val licenseTypeId: JsonField,
private val metadata: JsonField,
private val referenceId: JsonField,
private val additionalProperties: MutableMap,
@@ -11122,6 +11327,9 @@ private constructor(
@ExcludeMissing
invoicingCycleConfiguration: JsonField =
JsonMissing.of(),
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ licenseTypeId: JsonField = JsonMissing.of(),
@JsonProperty("metadata")
@ExcludeMissing
metadata: JsonField = JsonMissing.of(),
@@ -11145,6 +11353,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
mutableMapOf(),
@@ -11303,6 +11512,14 @@ private constructor(
fun invoicingCycleConfiguration(): Optional =
invoicingCycleConfiguration.getOptional("invoicing_cycle_configuration")
+ /**
+ * The ID of the license type to associate with this price.
+ *
+ * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun licenseTypeId(): Optional = licenseTypeId.getOptional("license_type_id")
+
/**
* User-specified key/value pairs for the resource. Individual keys can be removed
* by setting the value to `null`, and the entire metadata mapping can be cleared by
@@ -11471,6 +11688,16 @@ private constructor(
fun _invoicingCycleConfiguration(): JsonField =
invoicingCycleConfiguration
+ /**
+ * Returns the raw JSON value of [licenseTypeId].
+ *
+ * Unlike [licenseTypeId], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ fun _licenseTypeId(): JsonField = licenseTypeId
+
/**
* Returns the raw JSON value of [metadata].
*
@@ -11544,6 +11771,7 @@ private constructor(
private var invoicingCycleConfiguration:
JsonField =
JsonMissing.of()
+ private var licenseTypeId: JsonField = JsonMissing.of()
private var metadata: JsonField = JsonMissing.of()
private var referenceId: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -11566,6 +11794,7 @@ private constructor(
fixedPriceQuantity = percent.fixedPriceQuantity
invoiceGroupingKey = percent.invoiceGroupingKey
invoicingCycleConfiguration = percent.invoicingCycleConfiguration
+ licenseTypeId = percent.licenseTypeId
metadata = percent.metadata
referenceId = percent.referenceId
additionalProperties = percent.additionalProperties.toMutableMap()
@@ -11984,6 +12213,27 @@ private constructor(
invoicingCycleConfiguration: JsonField
) = apply { this.invoicingCycleConfiguration = invoicingCycleConfiguration }
+ /** The ID of the license type to associate with this price. */
+ fun licenseTypeId(licenseTypeId: String?) =
+ licenseTypeId(JsonField.ofNullable(licenseTypeId))
+
+ /**
+ * Alias for calling [Builder.licenseTypeId] with `licenseTypeId.orElse(null)`.
+ */
+ fun licenseTypeId(licenseTypeId: Optional) =
+ licenseTypeId(licenseTypeId.getOrNull())
+
+ /**
+ * Sets [Builder.licenseTypeId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.licenseTypeId] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
+ */
+ fun licenseTypeId(licenseTypeId: JsonField) = apply {
+ this.licenseTypeId = licenseTypeId
+ }
+
/**
* User-specified key/value pairs for the resource. Individual keys can be
* removed by setting the value to `null`, and the entire metadata mapping can
@@ -12080,6 +12330,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties.toMutableMap(),
@@ -12113,6 +12364,7 @@ private constructor(
fixedPriceQuantity()
invoiceGroupingKey()
invoicingCycleConfiguration().ifPresent { it.validate() }
+ licenseTypeId()
metadata().ifPresent { it.validate() }
referenceId()
validated = true
@@ -12150,6 +12402,7 @@ private constructor(
(if (fixedPriceQuantity.asKnown().isPresent) 1 else 0) +
(if (invoiceGroupingKey.asKnown().isPresent) 1 else 0) +
(invoicingCycleConfiguration.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (licenseTypeId.asKnown().isPresent) 1 else 0) +
(metadata.asKnown().getOrNull()?.validity() ?: 0) +
(if (referenceId.asKnown().isPresent) 1 else 0)
@@ -12619,6 +12872,7 @@ private constructor(
fixedPriceQuantity == other.fixedPriceQuantity &&
invoiceGroupingKey == other.invoiceGroupingKey &&
invoicingCycleConfiguration == other.invoicingCycleConfiguration &&
+ licenseTypeId == other.licenseTypeId &&
metadata == other.metadata &&
referenceId == other.referenceId &&
additionalProperties == other.additionalProperties
@@ -12642,6 +12896,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties,
@@ -12651,7 +12906,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "Percent{cadence=$cadence, itemId=$itemId, modelType=$modelType, name=$name, percentConfig=$percentConfig, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
+ "Percent{cadence=$cadence, itemId=$itemId, modelType=$modelType, name=$name, percentConfig=$percentConfig, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, licenseTypeId=$licenseTypeId, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
}
class EventOutput
@@ -12674,6 +12929,7 @@ private constructor(
private val fixedPriceQuantity: JsonField,
private val invoiceGroupingKey: JsonField,
private val invoicingCycleConfiguration: JsonField,
+ private val licenseTypeId: JsonField,
private val metadata: JsonField,
private val referenceId: JsonField,
private val additionalProperties: MutableMap,
@@ -12732,6 +12988,9 @@ private constructor(
@ExcludeMissing
invoicingCycleConfiguration: JsonField =
JsonMissing.of(),
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ licenseTypeId: JsonField = JsonMissing.of(),
@JsonProperty("metadata")
@ExcludeMissing
metadata: JsonField = JsonMissing.of(),
@@ -12755,6 +13014,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
mutableMapOf(),
@@ -12914,6 +13174,14 @@ private constructor(
fun invoicingCycleConfiguration(): Optional =
invoicingCycleConfiguration.getOptional("invoicing_cycle_configuration")
+ /**
+ * The ID of the license type to associate with this price.
+ *
+ * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun licenseTypeId(): Optional = licenseTypeId.getOptional("license_type_id")
+
/**
* User-specified key/value pairs for the resource. Individual keys can be removed
* by setting the value to `null`, and the entire metadata mapping can be cleared by
@@ -13082,6 +13350,16 @@ private constructor(
fun _invoicingCycleConfiguration(): JsonField =
invoicingCycleConfiguration
+ /**
+ * Returns the raw JSON value of [licenseTypeId].
+ *
+ * Unlike [licenseTypeId], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ fun _licenseTypeId(): JsonField = licenseTypeId
+
/**
* Returns the raw JSON value of [metadata].
*
@@ -13155,6 +13433,7 @@ private constructor(
private var invoicingCycleConfiguration:
JsonField =
JsonMissing.of()
+ private var licenseTypeId: JsonField = JsonMissing.of()
private var metadata: JsonField = JsonMissing.of()
private var referenceId: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -13177,6 +13456,7 @@ private constructor(
fixedPriceQuantity = eventOutput.fixedPriceQuantity
invoiceGroupingKey = eventOutput.invoiceGroupingKey
invoicingCycleConfiguration = eventOutput.invoicingCycleConfiguration
+ licenseTypeId = eventOutput.licenseTypeId
metadata = eventOutput.metadata
referenceId = eventOutput.referenceId
additionalProperties = eventOutput.additionalProperties.toMutableMap()
@@ -13595,6 +13875,27 @@ private constructor(
invoicingCycleConfiguration: JsonField
) = apply { this.invoicingCycleConfiguration = invoicingCycleConfiguration }
+ /** The ID of the license type to associate with this price. */
+ fun licenseTypeId(licenseTypeId: String?) =
+ licenseTypeId(JsonField.ofNullable(licenseTypeId))
+
+ /**
+ * Alias for calling [Builder.licenseTypeId] with `licenseTypeId.orElse(null)`.
+ */
+ fun licenseTypeId(licenseTypeId: Optional) =
+ licenseTypeId(licenseTypeId.getOrNull())
+
+ /**
+ * Sets [Builder.licenseTypeId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.licenseTypeId] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
+ */
+ fun licenseTypeId(licenseTypeId: JsonField) = apply {
+ this.licenseTypeId = licenseTypeId
+ }
+
/**
* User-specified key/value pairs for the resource. Individual keys can be
* removed by setting the value to `null`, and the entire metadata mapping can
@@ -13691,6 +13992,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties.toMutableMap(),
@@ -13724,6 +14026,7 @@ private constructor(
fixedPriceQuantity()
invoiceGroupingKey()
invoicingCycleConfiguration().ifPresent { it.validate() }
+ licenseTypeId()
metadata().ifPresent { it.validate() }
referenceId()
validated = true
@@ -13761,6 +14064,7 @@ private constructor(
(if (fixedPriceQuantity.asKnown().isPresent) 1 else 0) +
(if (invoiceGroupingKey.asKnown().isPresent) 1 else 0) +
(invoicingCycleConfiguration.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (licenseTypeId.asKnown().isPresent) 1 else 0) +
(metadata.asKnown().getOrNull()?.validity() ?: 0) +
(if (referenceId.asKnown().isPresent) 1 else 0)
@@ -14350,6 +14654,7 @@ private constructor(
fixedPriceQuantity == other.fixedPriceQuantity &&
invoiceGroupingKey == other.invoiceGroupingKey &&
invoicingCycleConfiguration == other.invoicingCycleConfiguration &&
+ licenseTypeId == other.licenseTypeId &&
metadata == other.metadata &&
referenceId == other.referenceId &&
additionalProperties == other.additionalProperties
@@ -14373,6 +14678,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties,
@@ -14382,7 +14688,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "EventOutput{cadence=$cadence, eventOutputConfig=$eventOutputConfig, itemId=$itemId, modelType=$modelType, name=$name, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
+ "EventOutput{cadence=$cadence, eventOutputConfig=$eventOutputConfig, itemId=$itemId, modelType=$modelType, name=$name, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, licenseTypeId=$licenseTypeId, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
}
}
@@ -17242,6 +17548,7 @@ private constructor(
private val fixedPriceQuantity: JsonField,
private val invoiceGroupingKey: JsonField,
private val invoicingCycleConfiguration: JsonField,
+ private val licenseTypeId: JsonField,
private val metadata: JsonField,
private val referenceId: JsonField,
private val additionalProperties: MutableMap,
@@ -17300,6 +17607,9 @@ private constructor(
@ExcludeMissing
invoicingCycleConfiguration: JsonField =
JsonMissing.of(),
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ licenseTypeId: JsonField = JsonMissing.of(),
@JsonProperty("metadata")
@ExcludeMissing
metadata: JsonField = JsonMissing.of(),
@@ -17323,6 +17633,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
mutableMapOf(),
@@ -17482,6 +17793,14 @@ private constructor(
fun invoicingCycleConfiguration(): Optional =
invoicingCycleConfiguration.getOptional("invoicing_cycle_configuration")
+ /**
+ * The ID of the license type to associate with this price.
+ *
+ * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun licenseTypeId(): Optional = licenseTypeId.getOptional("license_type_id")
+
/**
* User-specified key/value pairs for the resource. Individual keys can be removed
* by setting the value to `null`, and the entire metadata mapping can be cleared by
@@ -17651,6 +17970,16 @@ private constructor(
fun _invoicingCycleConfiguration(): JsonField =
invoicingCycleConfiguration
+ /**
+ * Returns the raw JSON value of [licenseTypeId].
+ *
+ * Unlike [licenseTypeId], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ fun _licenseTypeId(): JsonField = licenseTypeId
+
/**
* Returns the raw JSON value of [metadata].
*
@@ -17724,6 +18053,7 @@ private constructor(
private var invoicingCycleConfiguration:
JsonField =
JsonMissing.of()
+ private var licenseTypeId: JsonField = JsonMissing.of()
private var metadata: JsonField = JsonMissing.of()
private var referenceId: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -17747,6 +18077,7 @@ private constructor(
fixedPriceQuantity = bulkWithFilters.fixedPriceQuantity
invoiceGroupingKey = bulkWithFilters.invoiceGroupingKey
invoicingCycleConfiguration = bulkWithFilters.invoicingCycleConfiguration
+ licenseTypeId = bulkWithFilters.licenseTypeId
metadata = bulkWithFilters.metadata
referenceId = bulkWithFilters.referenceId
additionalProperties = bulkWithFilters.additionalProperties.toMutableMap()
@@ -18165,6 +18496,27 @@ private constructor(
invoicingCycleConfiguration: JsonField
) = apply { this.invoicingCycleConfiguration = invoicingCycleConfiguration }
+ /** The ID of the license type to associate with this price. */
+ fun licenseTypeId(licenseTypeId: String?) =
+ licenseTypeId(JsonField.ofNullable(licenseTypeId))
+
+ /**
+ * Alias for calling [Builder.licenseTypeId] with `licenseTypeId.orElse(null)`.
+ */
+ fun licenseTypeId(licenseTypeId: Optional) =
+ licenseTypeId(licenseTypeId.getOrNull())
+
+ /**
+ * Sets [Builder.licenseTypeId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.licenseTypeId] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
+ */
+ fun licenseTypeId(licenseTypeId: JsonField) = apply {
+ this.licenseTypeId = licenseTypeId
+ }
+
/**
* User-specified key/value pairs for the resource. Individual keys can be
* removed by setting the value to `null`, and the entire metadata mapping can
@@ -18261,6 +18613,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties.toMutableMap(),
@@ -18294,6 +18647,7 @@ private constructor(
fixedPriceQuantity()
invoiceGroupingKey()
invoicingCycleConfiguration().ifPresent { it.validate() }
+ licenseTypeId()
metadata().ifPresent { it.validate() }
referenceId()
validated = true
@@ -18331,6 +18685,7 @@ private constructor(
(if (fixedPriceQuantity.asKnown().isPresent) 1 else 0) +
(if (invoiceGroupingKey.asKnown().isPresent) 1 else 0) +
(invoicingCycleConfiguration.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (licenseTypeId.asKnown().isPresent) 1 else 0) +
(metadata.asKnown().getOrNull()?.validity() ?: 0) +
(if (referenceId.asKnown().isPresent) 1 else 0)
@@ -19328,6 +19683,7 @@ private constructor(
fixedPriceQuantity == other.fixedPriceQuantity &&
invoiceGroupingKey == other.invoiceGroupingKey &&
invoicingCycleConfiguration == other.invoicingCycleConfiguration &&
+ licenseTypeId == other.licenseTypeId &&
metadata == other.metadata &&
referenceId == other.referenceId &&
additionalProperties == other.additionalProperties
@@ -19351,6 +19707,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties,
@@ -19360,7 +19717,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "BulkWithFilters{bulkWithFiltersConfig=$bulkWithFiltersConfig, cadence=$cadence, itemId=$itemId, modelType=$modelType, name=$name, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
+ "BulkWithFilters{bulkWithFiltersConfig=$bulkWithFiltersConfig, cadence=$cadence, itemId=$itemId, modelType=$modelType, name=$name, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, licenseTypeId=$licenseTypeId, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
}
class TieredWithProration
@@ -19383,6 +19740,7 @@ private constructor(
private val fixedPriceQuantity: JsonField,
private val invoiceGroupingKey: JsonField,
private val invoicingCycleConfiguration: JsonField,
+ private val licenseTypeId: JsonField,
private val metadata: JsonField,
private val referenceId: JsonField,
private val additionalProperties: MutableMap,
@@ -19442,6 +19800,9 @@ private constructor(
@ExcludeMissing
invoicingCycleConfiguration: JsonField =
JsonMissing.of(),
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ licenseTypeId: JsonField = JsonMissing.of(),
@JsonProperty("metadata")
@ExcludeMissing
metadata: JsonField = JsonMissing.of(),
@@ -19465,6 +19826,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
mutableMapOf(),
@@ -19624,6 +19986,14 @@ private constructor(
fun invoicingCycleConfiguration(): Optional =
invoicingCycleConfiguration.getOptional("invoicing_cycle_configuration")
+ /**
+ * The ID of the license type to associate with this price.
+ *
+ * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun licenseTypeId(): Optional = licenseTypeId.getOptional("license_type_id")
+
/**
* User-specified key/value pairs for the resource. Individual keys can be removed
* by setting the value to `null`, and the entire metadata mapping can be cleared by
@@ -19793,6 +20163,16 @@ private constructor(
fun _invoicingCycleConfiguration(): JsonField =
invoicingCycleConfiguration
+ /**
+ * Returns the raw JSON value of [licenseTypeId].
+ *
+ * Unlike [licenseTypeId], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ fun _licenseTypeId(): JsonField = licenseTypeId
+
/**
* Returns the raw JSON value of [metadata].
*
@@ -19868,6 +20248,7 @@ private constructor(
private var invoicingCycleConfiguration:
JsonField =
JsonMissing.of()
+ private var licenseTypeId: JsonField = JsonMissing.of()
private var metadata: JsonField = JsonMissing.of()
private var referenceId: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -19892,6 +20273,7 @@ private constructor(
invoiceGroupingKey = tieredWithProration.invoiceGroupingKey
invoicingCycleConfiguration =
tieredWithProration.invoicingCycleConfiguration
+ licenseTypeId = tieredWithProration.licenseTypeId
metadata = tieredWithProration.metadata
referenceId = tieredWithProration.referenceId
additionalProperties =
@@ -20312,6 +20694,27 @@ private constructor(
invoicingCycleConfiguration: JsonField
) = apply { this.invoicingCycleConfiguration = invoicingCycleConfiguration }
+ /** The ID of the license type to associate with this price. */
+ fun licenseTypeId(licenseTypeId: String?) =
+ licenseTypeId(JsonField.ofNullable(licenseTypeId))
+
+ /**
+ * Alias for calling [Builder.licenseTypeId] with `licenseTypeId.orElse(null)`.
+ */
+ fun licenseTypeId(licenseTypeId: Optional) =
+ licenseTypeId(licenseTypeId.getOrNull())
+
+ /**
+ * Sets [Builder.licenseTypeId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.licenseTypeId] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
+ */
+ fun licenseTypeId(licenseTypeId: JsonField) = apply {
+ this.licenseTypeId = licenseTypeId
+ }
+
/**
* User-specified key/value pairs for the resource. Individual keys can be
* removed by setting the value to `null`, and the entire metadata mapping can
@@ -20408,6 +20811,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties.toMutableMap(),
@@ -20441,6 +20845,7 @@ private constructor(
fixedPriceQuantity()
invoiceGroupingKey()
invoicingCycleConfiguration().ifPresent { it.validate() }
+ licenseTypeId()
metadata().ifPresent { it.validate() }
referenceId()
validated = true
@@ -20480,6 +20885,7 @@ private constructor(
(if (fixedPriceQuantity.asKnown().isPresent) 1 else 0) +
(if (invoiceGroupingKey.asKnown().isPresent) 1 else 0) +
(invoicingCycleConfiguration.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (licenseTypeId.asKnown().isPresent) 1 else 0) +
(metadata.asKnown().getOrNull()?.validity() ?: 0) +
(if (referenceId.asKnown().isPresent) 1 else 0)
@@ -21194,6 +21600,7 @@ private constructor(
fixedPriceQuantity == other.fixedPriceQuantity &&
invoiceGroupingKey == other.invoiceGroupingKey &&
invoicingCycleConfiguration == other.invoicingCycleConfiguration &&
+ licenseTypeId == other.licenseTypeId &&
metadata == other.metadata &&
referenceId == other.referenceId &&
additionalProperties == other.additionalProperties
@@ -21217,6 +21624,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties,
@@ -21226,7 +21634,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "TieredWithProration{cadence=$cadence, itemId=$itemId, modelType=$modelType, name=$name, tieredWithProrationConfig=$tieredWithProrationConfig, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
+ "TieredWithProration{cadence=$cadence, itemId=$itemId, modelType=$modelType, name=$name, tieredWithProrationConfig=$tieredWithProrationConfig, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, licenseTypeId=$licenseTypeId, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
}
class GroupedWithMinMaxThresholds
@@ -21250,6 +21658,7 @@ private constructor(
private val fixedPriceQuantity: JsonField,
private val invoiceGroupingKey: JsonField,
private val invoicingCycleConfiguration: JsonField,
+ private val licenseTypeId: JsonField,
private val metadata: JsonField,
private val referenceId: JsonField,
private val additionalProperties: MutableMap,
@@ -21310,6 +21719,9 @@ private constructor(
@ExcludeMissing
invoicingCycleConfiguration: JsonField =
JsonMissing.of(),
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ licenseTypeId: JsonField = JsonMissing.of(),
@JsonProperty("metadata")
@ExcludeMissing
metadata: JsonField = JsonMissing.of(),
@@ -21333,6 +21745,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
mutableMapOf(),
@@ -21494,6 +21907,14 @@ private constructor(
fun invoicingCycleConfiguration(): Optional =
invoicingCycleConfiguration.getOptional("invoicing_cycle_configuration")
+ /**
+ * The ID of the license type to associate with this price.
+ *
+ * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun licenseTypeId(): Optional = licenseTypeId.getOptional("license_type_id")
+
/**
* User-specified key/value pairs for the resource. Individual keys can be removed
* by setting the value to `null`, and the entire metadata mapping can be cleared by
@@ -21663,6 +22084,16 @@ private constructor(
fun _invoicingCycleConfiguration(): JsonField =
invoicingCycleConfiguration
+ /**
+ * Returns the raw JSON value of [licenseTypeId].
+ *
+ * Unlike [licenseTypeId], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("license_type_id")
+ @ExcludeMissing
+ fun _licenseTypeId(): JsonField = licenseTypeId
+
/**
* Returns the raw JSON value of [metadata].
*
@@ -21740,6 +22171,7 @@ private constructor(
private var invoicingCycleConfiguration:
JsonField =
JsonMissing.of()
+ private var licenseTypeId: JsonField = JsonMissing.of()
private var metadata: JsonField = JsonMissing.of()
private var referenceId: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -21767,6 +22199,7 @@ private constructor(
invoiceGroupingKey = groupedWithMinMaxThresholds.invoiceGroupingKey
invoicingCycleConfiguration =
groupedWithMinMaxThresholds.invoicingCycleConfiguration
+ licenseTypeId = groupedWithMinMaxThresholds.licenseTypeId
metadata = groupedWithMinMaxThresholds.metadata
referenceId = groupedWithMinMaxThresholds.referenceId
additionalProperties =
@@ -22194,6 +22627,27 @@ private constructor(
invoicingCycleConfiguration: JsonField
) = apply { this.invoicingCycleConfiguration = invoicingCycleConfiguration }
+ /** The ID of the license type to associate with this price. */
+ fun licenseTypeId(licenseTypeId: String?) =
+ licenseTypeId(JsonField.ofNullable(licenseTypeId))
+
+ /**
+ * Alias for calling [Builder.licenseTypeId] with `licenseTypeId.orElse(null)`.
+ */
+ fun licenseTypeId(licenseTypeId: Optional) =
+ licenseTypeId(licenseTypeId.getOrNull())
+
+ /**
+ * Sets [Builder.licenseTypeId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.licenseTypeId] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
+ */
+ fun licenseTypeId(licenseTypeId: JsonField) = apply {
+ this.licenseTypeId = licenseTypeId
+ }
+
/**
* User-specified key/value pairs for the resource. Individual keys can be
* removed by setting the value to `null`, and the entire metadata mapping can
@@ -22293,6 +22747,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties.toMutableMap(),
@@ -22326,6 +22781,7 @@ private constructor(
fixedPriceQuantity()
invoiceGroupingKey()
invoicingCycleConfiguration().ifPresent { it.validate() }
+ licenseTypeId()
metadata().ifPresent { it.validate() }
referenceId()
validated = true
@@ -22365,6 +22821,7 @@ private constructor(
(if (fixedPriceQuantity.asKnown().isPresent) 1 else 0) +
(if (invoiceGroupingKey.asKnown().isPresent) 1 else 0) +
(invoicingCycleConfiguration.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (licenseTypeId.asKnown().isPresent) 1 else 0) +
(metadata.asKnown().getOrNull()?.validity() ?: 0) +
(if (referenceId.asKnown().isPresent) 1 else 0)
@@ -22987,6 +23444,7 @@ private constructor(
fixedPriceQuantity == other.fixedPriceQuantity &&
invoiceGroupingKey == other.invoiceGroupingKey &&
invoicingCycleConfiguration == other.invoicingCycleConfiguration &&
+ licenseTypeId == other.licenseTypeId &&
metadata == other.metadata &&
referenceId == other.referenceId &&
additionalProperties == other.additionalProperties
@@ -23010,6 +23468,7 @@ private constructor(
fixedPriceQuantity,
invoiceGroupingKey,
invoicingCycleConfiguration,
+ licenseTypeId,
metadata,
referenceId,
additionalProperties,
@@ -23019,7 +23478,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "GroupedWithMinMaxThresholds{cadence=$cadence, groupedWithMinMaxThresholdsConfig=$groupedWithMinMaxThresholdsConfig, itemId=$itemId, modelType=$modelType, name=$name, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
+ "GroupedWithMinMaxThresholds{cadence=$cadence, groupedWithMinMaxThresholdsConfig=$groupedWithMinMaxThresholdsConfig, itemId=$itemId, modelType=$modelType, name=$name, billableMetricId=$billableMetricId, billedInAdvance=$billedInAdvance, billingCycleConfiguration=$billingCycleConfiguration, conversionRate=$conversionRate, conversionRateConfig=$conversionRateConfig, currency=$currency, dimensionalPriceConfiguration=$dimensionalPriceConfiguration, externalPriceId=$externalPriceId, fixedPriceQuantity=$fixedPriceQuantity, invoiceGroupingKey=$invoiceGroupingKey, invoicingCycleConfiguration=$invoicingCycleConfiguration, licenseTypeId=$licenseTypeId, metadata=$metadata, referenceId=$referenceId, additionalProperties=$additionalProperties}"
}
class CumulativeGroupedAllocation
@@ -23043,6 +23502,7 @@ private constructor(
private val fixedPriceQuantity: JsonField,
private val invoiceGroupingKey: JsonField,
private val invoicingCycleConfiguration: JsonField