diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f7014c35..a7130553 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.11.0" + ".": "0.12.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index fb63efe6..26721953 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 97 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-77e2e50c9fb438b08736da759f722f9d062ed3fad3183fb951eb1eee93fa93f5.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-908960f165205e2874dd29322cc974df5ab10c7634ab9a342ab22047013de1b4.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a03c36b..0f04dd22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## 0.12.0 (2024-12-12) + +Full Changelog: [v0.11.0...v0.12.0](https://github.com/orbcorp/orb-java/compare/v0.11.0...v0.12.0) + +### Features + +* **api:** api update ([#152](https://github.com/orbcorp/orb-java/issues/152)) ([80e4392](https://github.com/orbcorp/orb-java/commit/80e4392479ef269e8c2c4fe785fdd4e365ce63fb)) + + +### Chores + +* **internal:** remove unused and expand used wildcard imports ([#150](https://github.com/orbcorp/orb-java/issues/150)) ([125239d](https://github.com/orbcorp/orb-java/commit/125239d512c263421213eeb779a114dcaae25032)) +* **internal:** remove unused and expand used wildcard imports ([#151](https://github.com/orbcorp/orb-java/issues/151)) ([e31d1ed](https://github.com/orbcorp/orb-java/commit/e31d1ed415f6f2f3eecd33bb198d1b93cd59c4fb)) +* **internal:** remove unused imports ([#147](https://github.com/orbcorp/orb-java/issues/147)) ([fbafbb5](https://github.com/orbcorp/orb-java/commit/fbafbb58161b70959c6ac9a3e484478571633619)) +* **test:** remove unused imports ([#148](https://github.com/orbcorp/orb-java/issues/148)) ([b170c90](https://github.com/orbcorp/orb-java/commit/b170c90db37d08d16ea65b4e9650c6281dc65124)) +* **test:** use `JsonValue` instead of `JsonString` ([#149](https://github.com/orbcorp/orb-java/issues/149)) ([b177193](https://github.com/orbcorp/orb-java/commit/b177193c824bb6c6a3e80e1c6248b5f87b51be90)) +* update example values in tests and docs ([#143](https://github.com/orbcorp/orb-java/issues/143)) ([3ae9d16](https://github.com/orbcorp/orb-java/commit/3ae9d16e54069c512ca6afcc912ebd4522428d92)) + + +### Styles + +* **internal:** make enum value definitions less verbose ([#145](https://github.com/orbcorp/orb-java/issues/145)) ([618c1a3](https://github.com/orbcorp/orb-java/commit/618c1a3ccf88c313d9fff21ee49520f638cd49d2)) +* **internal:** move enum identity methods to bottom of class ([#146](https://github.com/orbcorp/orb-java/issues/146)) ([8a9c393](https://github.com/orbcorp/orb-java/commit/8a9c3931e848d900c5d915329919e5a7f1164d08)) + ## 0.11.0 (2024-12-03) Full Changelog: [v0.10.0...v0.11.0](https://github.com/orbcorp/orb-java/compare/v0.10.0...v0.11.0) diff --git a/README.md b/README.md index 87d20d1d..3279a6de 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ -[![Maven Central](https://img.shields.io/maven-central/v/com.withorb.api/orb-java)](https://central.sonatype.com/artifact/com.withorb.api/orb-java/0.11.0) +[![Maven Central](https://img.shields.io/maven-central/v/com.withorb.api/orb-java)](https://central.sonatype.com/artifact/com.withorb.api/orb-java/0.12.0) @@ -25,7 +25,7 @@ The REST API documentation can be foundĀ on [docs.withorb.com](https://docs.with ```kotlin -implementation("com.withorb.api:orb-java:0.11.0") +implementation("com.withorb.api:orb-java:0.12.0") ``` #### Maven @@ -34,7 +34,7 @@ implementation("com.withorb.api:orb-java:0.11.0") com.withorb.api orb-java - 0.11.0 + 0.12.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 9c1a205a..21df37c1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ plugins { allprojects { group = "com.withorb.api" - version = "0.11.0" // x-release-please-version + version = "0.12.0" // x-release-please-version } 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 2e4c3d7e..943832f3 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 @@ -2,8 +2,19 @@ package com.withorb.api.client -import com.withorb.api.models.* -import com.withorb.api.services.blocking.* +import com.withorb.api.services.blocking.AlertService +import com.withorb.api.services.blocking.CouponService +import com.withorb.api.services.blocking.CreditNoteService +import com.withorb.api.services.blocking.CustomerService +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.MetricService +import com.withorb.api.services.blocking.PlanService +import com.withorb.api.services.blocking.PriceService +import com.withorb.api.services.blocking.SubscriptionService +import com.withorb.api.services.blocking.TopLevelService interface OrbClient { 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 5d8f2b01..88d26dd0 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 @@ -2,8 +2,19 @@ package com.withorb.api.client -import com.withorb.api.models.* -import com.withorb.api.services.async.* +import com.withorb.api.services.async.AlertServiceAsync +import com.withorb.api.services.async.CouponServiceAsync +import com.withorb.api.services.async.CreditNoteServiceAsync +import com.withorb.api.services.async.CustomerServiceAsync +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.MetricServiceAsync +import com.withorb.api.services.async.PlanServiceAsync +import com.withorb.api.services.async.PriceServiceAsync +import com.withorb.api.services.async.SubscriptionServiceAsync +import com.withorb.api.services.async.TopLevelServiceAsync interface OrbClientAsync { 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 79985a9a..1de69a55 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 @@ -4,8 +4,32 @@ package com.withorb.api.client import com.withorb.api.core.ClientOptions import com.withorb.api.core.getPackageVersion -import com.withorb.api.models.* -import com.withorb.api.services.async.* +import com.withorb.api.services.async.AlertServiceAsync +import com.withorb.api.services.async.AlertServiceAsyncImpl +import com.withorb.api.services.async.CouponServiceAsync +import com.withorb.api.services.async.CouponServiceAsyncImpl +import com.withorb.api.services.async.CreditNoteServiceAsync +import com.withorb.api.services.async.CreditNoteServiceAsyncImpl +import com.withorb.api.services.async.CustomerServiceAsync +import com.withorb.api.services.async.CustomerServiceAsyncImpl +import com.withorb.api.services.async.EventServiceAsync +import com.withorb.api.services.async.EventServiceAsyncImpl +import com.withorb.api.services.async.InvoiceLineItemServiceAsync +import com.withorb.api.services.async.InvoiceLineItemServiceAsyncImpl +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.MetricServiceAsync +import com.withorb.api.services.async.MetricServiceAsyncImpl +import com.withorb.api.services.async.PlanServiceAsync +import com.withorb.api.services.async.PlanServiceAsyncImpl +import com.withorb.api.services.async.PriceServiceAsync +import com.withorb.api.services.async.PriceServiceAsyncImpl +import com.withorb.api.services.async.SubscriptionServiceAsync +import com.withorb.api.services.async.SubscriptionServiceAsyncImpl +import com.withorb.api.services.async.TopLevelServiceAsync +import com.withorb.api.services.async.TopLevelServiceAsyncImpl class OrbClientAsyncImpl constructor( 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 ce095a90..895d5af3 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 @@ -4,8 +4,32 @@ package com.withorb.api.client import com.withorb.api.core.ClientOptions import com.withorb.api.core.getPackageVersion -import com.withorb.api.models.* -import com.withorb.api.services.blocking.* +import com.withorb.api.services.blocking.AlertService +import com.withorb.api.services.blocking.AlertServiceImpl +import com.withorb.api.services.blocking.CouponService +import com.withorb.api.services.blocking.CouponServiceImpl +import com.withorb.api.services.blocking.CreditNoteService +import com.withorb.api.services.blocking.CreditNoteServiceImpl +import com.withorb.api.services.blocking.CustomerService +import com.withorb.api.services.blocking.CustomerServiceImpl +import com.withorb.api.services.blocking.EventService +import com.withorb.api.services.blocking.EventServiceImpl +import com.withorb.api.services.blocking.InvoiceLineItemService +import com.withorb.api.services.blocking.InvoiceLineItemServiceImpl +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.MetricService +import com.withorb.api.services.blocking.MetricServiceImpl +import com.withorb.api.services.blocking.PlanService +import com.withorb.api.services.blocking.PlanServiceImpl +import com.withorb.api.services.blocking.PriceService +import com.withorb.api.services.blocking.PriceServiceImpl +import com.withorb.api.services.blocking.SubscriptionService +import com.withorb.api.services.blocking.SubscriptionServiceImpl +import com.withorb.api.services.blocking.TopLevelService +import com.withorb.api.services.blocking.TopLevelServiceImpl class OrbClientImpl constructor( 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 6447e41f..0d379278 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 @@ -672,29 +672,17 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE_EXCEEDED = Type(JsonField.of("usage_exceeded")) + @JvmField val USAGE_EXCEEDED = of("usage_exceeded") - @JvmField val COST_EXCEEDED = Type(JsonField.of("cost_exceeded")) + @JvmField val COST_EXCEEDED = of("cost_exceeded") - @JvmField val CREDIT_BALANCE_DEPLETED = Type(JsonField.of("credit_balance_depleted")) + @JvmField val CREDIT_BALANCE_DEPLETED = of("credit_balance_depleted") - @JvmField val CREDIT_BALANCE_DROPPED = Type(JsonField.of("credit_balance_dropped")) + @JvmField val CREDIT_BALANCE_DROPPED = of("credit_balance_dropped") - @JvmField val CREDIT_BALANCE_RECOVERED = Type(JsonField.of("credit_balance_recovered")) + @JvmField val CREDIT_BALANCE_RECOVERED = of("credit_balance_recovered") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -737,6 +725,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForCustomerParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForCustomerParams.kt index c3aaaf21..5965c62e 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForCustomerParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForCustomerParams.kt @@ -16,7 +16,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.util.Objects import java.util.Optional @@ -350,29 +349,17 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE_EXCEEDED = Type(JsonField.of("usage_exceeded")) + @JvmField val USAGE_EXCEEDED = of("usage_exceeded") - @JvmField val COST_EXCEEDED = Type(JsonField.of("cost_exceeded")) + @JvmField val COST_EXCEEDED = of("cost_exceeded") - @JvmField val CREDIT_BALANCE_DEPLETED = Type(JsonField.of("credit_balance_depleted")) + @JvmField val CREDIT_BALANCE_DEPLETED = of("credit_balance_depleted") - @JvmField val CREDIT_BALANCE_DROPPED = Type(JsonField.of("credit_balance_dropped")) + @JvmField val CREDIT_BALANCE_DROPPED = of("credit_balance_dropped") - @JvmField val CREDIT_BALANCE_RECOVERED = Type(JsonField.of("credit_balance_recovered")) + @JvmField val CREDIT_BALANCE_RECOVERED = of("credit_balance_recovered") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -415,6 +402,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** Thresholds are used to define the conditions under which an alert will be triggered. */ diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForExternalCustomerParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForExternalCustomerParams.kt index d64d82ad..7dba34ee 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForExternalCustomerParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForExternalCustomerParams.kt @@ -16,7 +16,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.util.Objects import java.util.Optional @@ -360,29 +359,17 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE_EXCEEDED = Type(JsonField.of("usage_exceeded")) + @JvmField val USAGE_EXCEEDED = of("usage_exceeded") - @JvmField val COST_EXCEEDED = Type(JsonField.of("cost_exceeded")) + @JvmField val COST_EXCEEDED = of("cost_exceeded") - @JvmField val CREDIT_BALANCE_DEPLETED = Type(JsonField.of("credit_balance_depleted")) + @JvmField val CREDIT_BALANCE_DEPLETED = of("credit_balance_depleted") - @JvmField val CREDIT_BALANCE_DROPPED = Type(JsonField.of("credit_balance_dropped")) + @JvmField val CREDIT_BALANCE_DROPPED = of("credit_balance_dropped") - @JvmField val CREDIT_BALANCE_RECOVERED = Type(JsonField.of("credit_balance_recovered")) + @JvmField val CREDIT_BALANCE_RECOVERED = of("credit_balance_recovered") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -425,6 +412,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** Thresholds are used to define the conditions under which an alert will be triggered. */ diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForSubscriptionParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForSubscriptionParams.kt index b7998a9f..38e71a40 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForSubscriptionParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForSubscriptionParams.kt @@ -16,7 +16,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.util.Objects import java.util.Optional @@ -438,29 +437,17 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE_EXCEEDED = Type(JsonField.of("usage_exceeded")) + @JvmField val USAGE_EXCEEDED = of("usage_exceeded") - @JvmField val COST_EXCEEDED = Type(JsonField.of("cost_exceeded")) + @JvmField val COST_EXCEEDED = of("cost_exceeded") - @JvmField val CREDIT_BALANCE_DEPLETED = Type(JsonField.of("credit_balance_depleted")) + @JvmField val CREDIT_BALANCE_DEPLETED = of("credit_balance_depleted") - @JvmField val CREDIT_BALANCE_DROPPED = Type(JsonField.of("credit_balance_dropped")) + @JvmField val CREDIT_BALANCE_DROPPED = of("credit_balance_dropped") - @JvmField val CREDIT_BALANCE_RECOVERED = Type(JsonField.of("credit_balance_recovered")) + @JvmField val CREDIT_BALANCE_RECOVERED = of("credit_balance_recovered") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -503,6 +490,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertDisableParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertDisableParams.kt index d4f89539..f9a08d4b 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertDisableParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertDisableParams.kt @@ -7,13 +7,13 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional class AlertDisableParams constructor( private val alertConfigurationId: String, + private val subscriptionId: String?, private val additionalHeaders: Headers, private val additionalQueryParams: QueryParams, private val additionalBodyProperties: Map, @@ -21,6 +21,8 @@ constructor( fun alertConfigurationId(): String = alertConfigurationId + fun subscriptionId(): Optional = Optional.ofNullable(subscriptionId) + fun _additionalHeaders(): Headers = additionalHeaders fun _additionalQueryParams(): QueryParams = additionalQueryParams @@ -34,7 +36,13 @@ constructor( @JvmSynthetic internal fun getHeaders(): Headers = additionalHeaders - @JvmSynthetic internal fun getQueryParams(): QueryParams = additionalQueryParams + @JvmSynthetic + internal fun getQueryParams(): QueryParams { + val queryParams = QueryParams.builder() + this.subscriptionId?.let { queryParams.put("subscription_id", listOf(it.toString())) } + queryParams.putAll(additionalQueryParams) + return queryParams.build() + } fun getPathParam(index: Int): String { return when (index) { @@ -54,6 +62,7 @@ constructor( class Builder { private var alertConfigurationId: String? = null + private var subscriptionId: String? = null private var additionalHeaders: Headers.Builder = Headers.builder() private var additionalQueryParams: QueryParams.Builder = QueryParams.builder() private var additionalBodyProperties: MutableMap = mutableMapOf() @@ -61,6 +70,7 @@ constructor( @JvmSynthetic internal fun from(alertDisableParams: AlertDisableParams) = apply { alertConfigurationId = alertDisableParams.alertConfigurationId + subscriptionId = alertDisableParams.subscriptionId additionalHeaders = alertDisableParams.additionalHeaders.toBuilder() additionalQueryParams = alertDisableParams.additionalQueryParams.toBuilder() additionalBodyProperties = alertDisableParams.additionalBodyProperties.toMutableMap() @@ -70,6 +80,9 @@ constructor( this.alertConfigurationId = alertConfigurationId } + /** Used to update the status of a plan alert scoped to this subscription_id */ + fun subscriptionId(subscriptionId: String) = apply { this.subscriptionId = subscriptionId } + fun additionalHeaders(additionalHeaders: Headers) = apply { this.additionalHeaders.clear() putAllAdditionalHeaders(additionalHeaders) @@ -195,6 +208,7 @@ constructor( checkNotNull(alertConfigurationId) { "`alertConfigurationId` is required but was not set" }, + subscriptionId, additionalHeaders.build(), additionalQueryParams.build(), additionalBodyProperties.toImmutable(), @@ -206,11 +220,11 @@ constructor( return true } - return /* spotless:off */ other is AlertDisableParams && alertConfigurationId == other.alertConfigurationId && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */ + return /* spotless:off */ other is AlertDisableParams && alertConfigurationId == other.alertConfigurationId && subscriptionId == other.subscriptionId && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */ } - override fun hashCode(): Int = /* spotless:off */ Objects.hash(alertConfigurationId, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */ + override fun hashCode(): Int = /* spotless:off */ Objects.hash(alertConfigurationId, subscriptionId, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */ override fun toString() = - "AlertDisableParams{alertConfigurationId=$alertConfigurationId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}" + "AlertDisableParams{alertConfigurationId=$alertConfigurationId, subscriptionId=$subscriptionId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}" } diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertEnableParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertEnableParams.kt index eeeffc8d..a3015c67 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertEnableParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertEnableParams.kt @@ -7,13 +7,13 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional class AlertEnableParams constructor( private val alertConfigurationId: String, + private val subscriptionId: String?, private val additionalHeaders: Headers, private val additionalQueryParams: QueryParams, private val additionalBodyProperties: Map, @@ -21,6 +21,8 @@ constructor( fun alertConfigurationId(): String = alertConfigurationId + fun subscriptionId(): Optional = Optional.ofNullable(subscriptionId) + fun _additionalHeaders(): Headers = additionalHeaders fun _additionalQueryParams(): QueryParams = additionalQueryParams @@ -34,7 +36,13 @@ constructor( @JvmSynthetic internal fun getHeaders(): Headers = additionalHeaders - @JvmSynthetic internal fun getQueryParams(): QueryParams = additionalQueryParams + @JvmSynthetic + internal fun getQueryParams(): QueryParams { + val queryParams = QueryParams.builder() + this.subscriptionId?.let { queryParams.put("subscription_id", listOf(it.toString())) } + queryParams.putAll(additionalQueryParams) + return queryParams.build() + } fun getPathParam(index: Int): String { return when (index) { @@ -54,6 +62,7 @@ constructor( class Builder { private var alertConfigurationId: String? = null + private var subscriptionId: String? = null private var additionalHeaders: Headers.Builder = Headers.builder() private var additionalQueryParams: QueryParams.Builder = QueryParams.builder() private var additionalBodyProperties: MutableMap = mutableMapOf() @@ -61,6 +70,7 @@ constructor( @JvmSynthetic internal fun from(alertEnableParams: AlertEnableParams) = apply { alertConfigurationId = alertEnableParams.alertConfigurationId + subscriptionId = alertEnableParams.subscriptionId additionalHeaders = alertEnableParams.additionalHeaders.toBuilder() additionalQueryParams = alertEnableParams.additionalQueryParams.toBuilder() additionalBodyProperties = alertEnableParams.additionalBodyProperties.toMutableMap() @@ -70,6 +80,9 @@ constructor( this.alertConfigurationId = alertConfigurationId } + /** Used to update the status of a plan alert scoped to this subscription_id */ + fun subscriptionId(subscriptionId: String) = apply { this.subscriptionId = subscriptionId } + fun additionalHeaders(additionalHeaders: Headers) = apply { this.additionalHeaders.clear() putAllAdditionalHeaders(additionalHeaders) @@ -195,6 +208,7 @@ constructor( checkNotNull(alertConfigurationId) { "`alertConfigurationId` is required but was not set" }, + subscriptionId, additionalHeaders.build(), additionalQueryParams.build(), additionalBodyProperties.toImmutable(), @@ -206,11 +220,11 @@ constructor( return true } - return /* spotless:off */ other is AlertEnableParams && alertConfigurationId == other.alertConfigurationId && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */ + return /* spotless:off */ other is AlertEnableParams && alertConfigurationId == other.alertConfigurationId && subscriptionId == other.subscriptionId && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */ } - override fun hashCode(): Int = /* spotless:off */ Objects.hash(alertConfigurationId, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */ + override fun hashCode(): Int = /* spotless:off */ Objects.hash(alertConfigurationId, subscriptionId, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */ override fun toString() = - "AlertEnableParams{alertConfigurationId=$alertConfigurationId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}" + "AlertEnableParams{alertConfigurationId=$alertConfigurationId, subscriptionId=$subscriptionId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}" } diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListParams.kt index 7d89f2e0..c398e352 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import java.time.format.DateTimeFormatter import java.util.Objects diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertRetrieveParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertRetrieveParams.kt index a8067b45..24bbd18a 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertRetrieveParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertRetrieveParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class AlertRetrieveParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertUpdateParams.kt index c58dc6fc..3420df46 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertUpdateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertUpdateParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects class AlertUpdateParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AmountDiscount.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AmountDiscount.kt index 67c74d04..26969bca 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AmountDiscount.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AmountDiscount.kt @@ -170,21 +170,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -211,6 +199,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/BillableMetric.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/BillableMetric.kt index 3ec20f7e..98a0e68c 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/BillableMetric.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/BillableMetric.kt @@ -288,25 +288,13 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val DRAFT = Status(JsonField.of("draft")) + @JvmField val DRAFT = of("draft") - @JvmField val ARCHIVED = Status(JsonField.of("archived")) + @JvmField val ARCHIVED = of("archived") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -341,6 +329,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/BillingCycleRelativeDate.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/BillingCycleRelativeDate.kt index 702da922..c5225e6a 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/BillingCycleRelativeDate.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/BillingCycleRelativeDate.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.fasterxml.jackson.annotation.JsonCreator import com.withorb.api.core.Enum import com.withorb.api.core.JsonField -import com.withorb.api.core.JsonValue import com.withorb.api.errors.OrbInvalidDataException class BillingCycleRelativeDate @@ -16,23 +15,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BillingCycleRelativeDate && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val START_OF_TERM = BillingCycleRelativeDate(JsonField.of("start_of_term")) + @JvmField val START_OF_TERM = of("start_of_term") - @JvmField val END_OF_TERM = BillingCycleRelativeDate(JsonField.of("end_of_term")) + @JvmField val END_OF_TERM = of("end_of_term") @JvmStatic fun of(value: String) = BillingCycleRelativeDate(JsonField.of(value)) } @@ -63,4 +50,16 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleRelativeDate && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponArchiveParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponArchiveParams.kt index 6e8b10b2..d19a6599 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponArchiveParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponArchiveParams.kt @@ -7,7 +7,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponCreateParams.kt index 6f37fca4..c4125c79 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponCreateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponCreateParams.kt @@ -26,7 +26,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.util.Objects import java.util.Optional import kotlin.jvm.optionals.getOrNull @@ -630,21 +629,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -671,6 +658,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -791,21 +790,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -832,6 +819,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponFetchParams.kt index 5eafdb69..6dca4c54 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponFetchParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponFetchParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class CouponFetchParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListParams.kt index 391b0637..d8416177 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListParams.kt index 08ac6aee..940866d2 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNote.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNote.kt index 217d7c11..7885be4a 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNote.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNote.kt @@ -1024,23 +1024,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -1071,6 +1059,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1261,21 +1261,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -1302,6 +1290,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = AppliesToPrice.Builder::class) @@ -1434,27 +1434,15 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Reason && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DUPLICATE = Reason(JsonField.of("Duplicate")) + @JvmField val DUPLICATE = of("Duplicate") - @JvmField val FRAUDULENT = Reason(JsonField.of("Fraudulent")) + @JvmField val FRAUDULENT = of("Fraudulent") - @JvmField val ORDER_CHANGE = Reason(JsonField.of("Order change")) + @JvmField val ORDER_CHANGE = of("Order change") - @JvmField val PRODUCT_UNSATISFACTORY = Reason(JsonField.of("Product unsatisfactory")) + @JvmField val PRODUCT_UNSATISFACTORY = of("Product unsatisfactory") @JvmStatic fun of(value: String) = Reason(JsonField.of(value)) } @@ -1493,33 +1481,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is Reason && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val REFUND = Type(JsonField.of("refund")) + @JvmField val REFUND = of("refund") - @JvmField val ADJUSTMENT = Type(JsonField.of("adjustment")) + @JvmField val ADJUSTMENT = of("adjustment") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -1550,6 +1538,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = Discount.Builder::class) @@ -1703,21 +1703,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -1744,6 +1732,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = AppliesToPrice.Builder::class) diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteCreateParams.kt index 5301961e..c4f54461 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteCreateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteCreateParams.kt @@ -16,7 +16,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.util.Objects import java.util.Optional @@ -421,27 +420,15 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Reason && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DUPLICATE = Reason(JsonField.of("duplicate")) + @JvmField val DUPLICATE = of("duplicate") - @JvmField val FRAUDULENT = Reason(JsonField.of("fraudulent")) + @JvmField val FRAUDULENT = of("fraudulent") - @JvmField val ORDER_CHANGE = Reason(JsonField.of("order_change")) + @JvmField val ORDER_CHANGE = of("order_change") - @JvmField val PRODUCT_UNSATISFACTORY = Reason(JsonField.of("product_unsatisfactory")) + @JvmField val PRODUCT_UNSATISFACTORY = of("product_unsatisfactory") @JvmStatic fun of(value: String) = Reason(JsonField.of(value)) } @@ -480,6 +467,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Reason && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteFetchParams.kt index 339110cd..d61ea776 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteFetchParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteFetchParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class CreditNoteFetchParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListParams.kt index ba0734e3..4faf30a7 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/Customer.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/Customer.kt index c5a009d7..08c82952 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/Customer.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/Customer.kt @@ -1244,29 +1244,17 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is PaymentProvider && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val QUICKBOOKS = PaymentProvider(JsonField.of("quickbooks")) + @JvmField val QUICKBOOKS = of("quickbooks") - @JvmField val BILL_COM = PaymentProvider(JsonField.of("bill.com")) + @JvmField val BILL_COM = of("bill.com") - @JvmField val STRIPE_CHARGE = PaymentProvider(JsonField.of("stripe_charge")) + @JvmField val STRIPE_CHARGE = of("stripe_charge") - @JvmField val STRIPE_INVOICE = PaymentProvider(JsonField.of("stripe_invoice")) + @JvmField val STRIPE_INVOICE = of("stripe_invoice") - @JvmField val NETSUITE = PaymentProvider(JsonField.of("netsuite")) + @JvmField val NETSUITE = of("netsuite") @JvmStatic fun of(value: String) = PaymentProvider(JsonField.of(value)) } @@ -1309,6 +1297,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PaymentProvider && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = ShippingAddress.Builder::class) @@ -1689,175 +1689,163 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Country && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AD = Country(JsonField.of("AD")) + @JvmField val AD = of("AD") - @JvmField val AE = Country(JsonField.of("AE")) + @JvmField val AE = of("AE") - @JvmField val AR = Country(JsonField.of("AR")) + @JvmField val AR = of("AR") - @JvmField val AT = Country(JsonField.of("AT")) + @JvmField val AT = of("AT") - @JvmField val AU = Country(JsonField.of("AU")) + @JvmField val AU = of("AU") - @JvmField val BE = Country(JsonField.of("BE")) + @JvmField val BE = of("BE") - @JvmField val BG = Country(JsonField.of("BG")) + @JvmField val BG = of("BG") - @JvmField val BH = Country(JsonField.of("BH")) + @JvmField val BH = of("BH") - @JvmField val BO = Country(JsonField.of("BO")) + @JvmField val BO = of("BO") - @JvmField val BR = Country(JsonField.of("BR")) + @JvmField val BR = of("BR") - @JvmField val CA = Country(JsonField.of("CA")) + @JvmField val CA = of("CA") - @JvmField val CH = Country(JsonField.of("CH")) + @JvmField val CH = of("CH") - @JvmField val CL = Country(JsonField.of("CL")) + @JvmField val CL = of("CL") - @JvmField val CN = Country(JsonField.of("CN")) + @JvmField val CN = of("CN") - @JvmField val CO = Country(JsonField.of("CO")) + @JvmField val CO = of("CO") - @JvmField val CR = Country(JsonField.of("CR")) + @JvmField val CR = of("CR") - @JvmField val CY = Country(JsonField.of("CY")) + @JvmField val CY = of("CY") - @JvmField val CZ = Country(JsonField.of("CZ")) + @JvmField val CZ = of("CZ") - @JvmField val DE = Country(JsonField.of("DE")) + @JvmField val DE = of("DE") - @JvmField val DK = Country(JsonField.of("DK")) + @JvmField val DK = of("DK") - @JvmField val EE = Country(JsonField.of("EE")) + @JvmField val EE = of("EE") - @JvmField val DO = Country(JsonField.of("DO")) + @JvmField val DO = of("DO") - @JvmField val EC = Country(JsonField.of("EC")) + @JvmField val EC = of("EC") - @JvmField val EG = Country(JsonField.of("EG")) + @JvmField val EG = of("EG") - @JvmField val ES = Country(JsonField.of("ES")) + @JvmField val ES = of("ES") - @JvmField val EU = Country(JsonField.of("EU")) + @JvmField val EU = of("EU") - @JvmField val FI = Country(JsonField.of("FI")) + @JvmField val FI = of("FI") - @JvmField val FR = Country(JsonField.of("FR")) + @JvmField val FR = of("FR") - @JvmField val GB = Country(JsonField.of("GB")) + @JvmField val GB = of("GB") - @JvmField val GE = Country(JsonField.of("GE")) + @JvmField val GE = of("GE") - @JvmField val GR = Country(JsonField.of("GR")) + @JvmField val GR = of("GR") - @JvmField val HK = Country(JsonField.of("HK")) + @JvmField val HK = of("HK") - @JvmField val HR = Country(JsonField.of("HR")) + @JvmField val HR = of("HR") - @JvmField val HU = Country(JsonField.of("HU")) + @JvmField val HU = of("HU") - @JvmField val ID = Country(JsonField.of("ID")) + @JvmField val ID = of("ID") - @JvmField val IE = Country(JsonField.of("IE")) + @JvmField val IE = of("IE") - @JvmField val IL = Country(JsonField.of("IL")) + @JvmField val IL = of("IL") - @JvmField val IN = Country(JsonField.of("IN")) + @JvmField val IN = of("IN") - @JvmField val IS = Country(JsonField.of("IS")) + @JvmField val IS = of("IS") - @JvmField val IT = Country(JsonField.of("IT")) + @JvmField val IT = of("IT") - @JvmField val JP = Country(JsonField.of("JP")) + @JvmField val JP = of("JP") - @JvmField val KE = Country(JsonField.of("KE")) + @JvmField val KE = of("KE") - @JvmField val KR = Country(JsonField.of("KR")) + @JvmField val KR = of("KR") - @JvmField val KZ = Country(JsonField.of("KZ")) + @JvmField val KZ = of("KZ") - @JvmField val LI = Country(JsonField.of("LI")) + @JvmField val LI = of("LI") - @JvmField val LT = Country(JsonField.of("LT")) + @JvmField val LT = of("LT") - @JvmField val LU = Country(JsonField.of("LU")) + @JvmField val LU = of("LU") - @JvmField val LV = Country(JsonField.of("LV")) + @JvmField val LV = of("LV") - @JvmField val MT = Country(JsonField.of("MT")) + @JvmField val MT = of("MT") - @JvmField val MX = Country(JsonField.of("MX")) + @JvmField val MX = of("MX") - @JvmField val MY = Country(JsonField.of("MY")) + @JvmField val MY = of("MY") - @JvmField val NG = Country(JsonField.of("NG")) + @JvmField val NG = of("NG") - @JvmField val NL = Country(JsonField.of("NL")) + @JvmField val NL = of("NL") - @JvmField val NO = Country(JsonField.of("NO")) + @JvmField val NO = of("NO") - @JvmField val NZ = Country(JsonField.of("NZ")) + @JvmField val NZ = of("NZ") - @JvmField val OM = Country(JsonField.of("OM")) + @JvmField val OM = of("OM") - @JvmField val PE = Country(JsonField.of("PE")) + @JvmField val PE = of("PE") - @JvmField val PH = Country(JsonField.of("PH")) + @JvmField val PH = of("PH") - @JvmField val PL = Country(JsonField.of("PL")) + @JvmField val PL = of("PL") - @JvmField val PT = Country(JsonField.of("PT")) + @JvmField val PT = of("PT") - @JvmField val RO = Country(JsonField.of("RO")) + @JvmField val RO = of("RO") - @JvmField val RS = Country(JsonField.of("RS")) + @JvmField val RS = of("RS") - @JvmField val RU = Country(JsonField.of("RU")) + @JvmField val RU = of("RU") - @JvmField val SA = Country(JsonField.of("SA")) + @JvmField val SA = of("SA") - @JvmField val SE = Country(JsonField.of("SE")) + @JvmField val SE = of("SE") - @JvmField val SG = Country(JsonField.of("SG")) + @JvmField val SG = of("SG") - @JvmField val SI = Country(JsonField.of("SI")) + @JvmField val SI = of("SI") - @JvmField val SK = Country(JsonField.of("SK")) + @JvmField val SK = of("SK") - @JvmField val SV = Country(JsonField.of("SV")) + @JvmField val SV = of("SV") - @JvmField val TH = Country(JsonField.of("TH")) + @JvmField val TH = of("TH") - @JvmField val TR = Country(JsonField.of("TR")) + @JvmField val TR = of("TR") - @JvmField val TW = Country(JsonField.of("TW")) + @JvmField val TW = of("TW") - @JvmField val UA = Country(JsonField.of("UA")) + @JvmField val UA = of("UA") - @JvmField val US = Country(JsonField.of("US")) + @JvmField val US = of("US") - @JvmField val UY = Country(JsonField.of("UY")) + @JvmField val UY = of("UY") - @JvmField val VE = Country(JsonField.of("VE")) + @JvmField val VE = of("VE") - @JvmField val VN = Country(JsonField.of("VN")) + @JvmField val VN = of("VN") - @JvmField val ZA = Country(JsonField.of("ZA")) + @JvmField val ZA = of("ZA") @JvmStatic fun of(value: String) = Country(JsonField.of(value)) } @@ -2192,171 +2180,171 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is Country && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val AD_NRT = Type(JsonField.of("ad_nrt")) + @JvmField val AD_NRT = of("ad_nrt") - @JvmField val AE_TRN = Type(JsonField.of("ae_trn")) + @JvmField val AE_TRN = of("ae_trn") - @JvmField val AR_CUIT = Type(JsonField.of("ar_cuit")) + @JvmField val AR_CUIT = of("ar_cuit") - @JvmField val EU_VAT = Type(JsonField.of("eu_vat")) + @JvmField val EU_VAT = of("eu_vat") - @JvmField val AU_ABN = Type(JsonField.of("au_abn")) + @JvmField val AU_ABN = of("au_abn") - @JvmField val AU_ARN = Type(JsonField.of("au_arn")) + @JvmField val AU_ARN = of("au_arn") - @JvmField val BG_UIC = Type(JsonField.of("bg_uic")) + @JvmField val BG_UIC = of("bg_uic") - @JvmField val BH_VAT = Type(JsonField.of("bh_vat")) + @JvmField val BH_VAT = of("bh_vat") - @JvmField val BO_TIN = Type(JsonField.of("bo_tin")) + @JvmField val BO_TIN = of("bo_tin") - @JvmField val BR_CNPJ = Type(JsonField.of("br_cnpj")) + @JvmField val BR_CNPJ = of("br_cnpj") - @JvmField val BR_CPF = Type(JsonField.of("br_cpf")) + @JvmField val BR_CPF = of("br_cpf") - @JvmField val CA_BN = Type(JsonField.of("ca_bn")) + @JvmField val CA_BN = of("ca_bn") - @JvmField val CA_GST_HST = Type(JsonField.of("ca_gst_hst")) + @JvmField val CA_GST_HST = of("ca_gst_hst") - @JvmField val CA_PST_BC = Type(JsonField.of("ca_pst_bc")) + @JvmField val CA_PST_BC = of("ca_pst_bc") - @JvmField val CA_PST_MB = Type(JsonField.of("ca_pst_mb")) + @JvmField val CA_PST_MB = of("ca_pst_mb") - @JvmField val CA_PST_SK = Type(JsonField.of("ca_pst_sk")) + @JvmField val CA_PST_SK = of("ca_pst_sk") - @JvmField val CA_QST = Type(JsonField.of("ca_qst")) + @JvmField val CA_QST = of("ca_qst") - @JvmField val CH_VAT = Type(JsonField.of("ch_vat")) + @JvmField val CH_VAT = of("ch_vat") - @JvmField val CL_TIN = Type(JsonField.of("cl_tin")) + @JvmField val CL_TIN = of("cl_tin") - @JvmField val CN_TIN = Type(JsonField.of("cn_tin")) + @JvmField val CN_TIN = of("cn_tin") - @JvmField val CO_NIT = Type(JsonField.of("co_nit")) + @JvmField val CO_NIT = of("co_nit") - @JvmField val CR_TIN = Type(JsonField.of("cr_tin")) + @JvmField val CR_TIN = of("cr_tin") - @JvmField val DO_RCN = Type(JsonField.of("do_rcn")) + @JvmField val DO_RCN = of("do_rcn") - @JvmField val EC_RUC = Type(JsonField.of("ec_ruc")) + @JvmField val EC_RUC = of("ec_ruc") - @JvmField val EG_TIN = Type(JsonField.of("eg_tin")) + @JvmField val EG_TIN = of("eg_tin") - @JvmField val ES_CIF = Type(JsonField.of("es_cif")) + @JvmField val ES_CIF = of("es_cif") - @JvmField val EU_OSS_VAT = Type(JsonField.of("eu_oss_vat")) + @JvmField val EU_OSS_VAT = of("eu_oss_vat") - @JvmField val GB_VAT = Type(JsonField.of("gb_vat")) + @JvmField val GB_VAT = of("gb_vat") - @JvmField val GE_VAT = Type(JsonField.of("ge_vat")) + @JvmField val GE_VAT = of("ge_vat") - @JvmField val HK_BR = Type(JsonField.of("hk_br")) + @JvmField val HK_BR = of("hk_br") - @JvmField val HU_TIN = Type(JsonField.of("hu_tin")) + @JvmField val HU_TIN = of("hu_tin") - @JvmField val ID_NPWP = Type(JsonField.of("id_npwp")) + @JvmField val ID_NPWP = of("id_npwp") - @JvmField val IL_VAT = Type(JsonField.of("il_vat")) + @JvmField val IL_VAT = of("il_vat") - @JvmField val IN_GST = Type(JsonField.of("in_gst")) + @JvmField val IN_GST = of("in_gst") - @JvmField val IS_VAT = Type(JsonField.of("is_vat")) + @JvmField val IS_VAT = of("is_vat") - @JvmField val JP_CN = Type(JsonField.of("jp_cn")) + @JvmField val JP_CN = of("jp_cn") - @JvmField val JP_RN = Type(JsonField.of("jp_rn")) + @JvmField val JP_RN = of("jp_rn") - @JvmField val JP_TRN = Type(JsonField.of("jp_trn")) + @JvmField val JP_TRN = of("jp_trn") - @JvmField val KE_PIN = Type(JsonField.of("ke_pin")) + @JvmField val KE_PIN = of("ke_pin") - @JvmField val KR_BRN = Type(JsonField.of("kr_brn")) + @JvmField val KR_BRN = of("kr_brn") - @JvmField val KZ_BIN = Type(JsonField.of("kz_bin")) + @JvmField val KZ_BIN = of("kz_bin") - @JvmField val LI_UID = Type(JsonField.of("li_uid")) + @JvmField val LI_UID = of("li_uid") - @JvmField val MX_RFC = Type(JsonField.of("mx_rfc")) + @JvmField val MX_RFC = of("mx_rfc") - @JvmField val MY_FRP = Type(JsonField.of("my_frp")) + @JvmField val MY_FRP = of("my_frp") - @JvmField val MY_ITN = Type(JsonField.of("my_itn")) + @JvmField val MY_ITN = of("my_itn") - @JvmField val MY_SST = Type(JsonField.of("my_sst")) + @JvmField val MY_SST = of("my_sst") - @JvmField val NG_TIN = Type(JsonField.of("ng_tin")) + @JvmField val NG_TIN = of("ng_tin") - @JvmField val NO_VAT = Type(JsonField.of("no_vat")) + @JvmField val NO_VAT = of("no_vat") - @JvmField val NO_VOEC = Type(JsonField.of("no_voec")) + @JvmField val NO_VOEC = of("no_voec") - @JvmField val NZ_GST = Type(JsonField.of("nz_gst")) + @JvmField val NZ_GST = of("nz_gst") - @JvmField val OM_VAT = Type(JsonField.of("om_vat")) + @JvmField val OM_VAT = of("om_vat") - @JvmField val PE_RUC = Type(JsonField.of("pe_ruc")) + @JvmField val PE_RUC = of("pe_ruc") - @JvmField val PH_TIN = Type(JsonField.of("ph_tin")) + @JvmField val PH_TIN = of("ph_tin") - @JvmField val RO_TIN = Type(JsonField.of("ro_tin")) + @JvmField val RO_TIN = of("ro_tin") - @JvmField val RS_PIB = Type(JsonField.of("rs_pib")) + @JvmField val RS_PIB = of("rs_pib") - @JvmField val RU_INN = Type(JsonField.of("ru_inn")) + @JvmField val RU_INN = of("ru_inn") - @JvmField val RU_KPP = Type(JsonField.of("ru_kpp")) + @JvmField val RU_KPP = of("ru_kpp") - @JvmField val SA_VAT = Type(JsonField.of("sa_vat")) + @JvmField val SA_VAT = of("sa_vat") - @JvmField val SG_GST = Type(JsonField.of("sg_gst")) + @JvmField val SG_GST = of("sg_gst") - @JvmField val SG_UEN = Type(JsonField.of("sg_uen")) + @JvmField val SG_UEN = of("sg_uen") - @JvmField val SI_TIN = Type(JsonField.of("si_tin")) + @JvmField val SI_TIN = of("si_tin") - @JvmField val SV_NIT = Type(JsonField.of("sv_nit")) + @JvmField val SV_NIT = of("sv_nit") - @JvmField val TH_VAT = Type(JsonField.of("th_vat")) + @JvmField val TH_VAT = of("th_vat") - @JvmField val TR_TIN = Type(JsonField.of("tr_tin")) + @JvmField val TR_TIN = of("tr_tin") - @JvmField val TW_VAT = Type(JsonField.of("tw_vat")) + @JvmField val TW_VAT = of("tw_vat") - @JvmField val UA_VAT = Type(JsonField.of("ua_vat")) + @JvmField val UA_VAT = of("ua_vat") - @JvmField val US_EIN = Type(JsonField.of("us_ein")) + @JvmField val US_EIN = of("us_ein") - @JvmField val UY_RUC = Type(JsonField.of("uy_ruc")) + @JvmField val UY_RUC = of("uy_ruc") - @JvmField val VE_RIF = Type(JsonField.of("ve_rif")) + @JvmField val VE_RIF = of("ve_rif") - @JvmField val VN_TIN = Type(JsonField.of("vn_tin")) + @JvmField val VN_TIN = of("vn_tin") - @JvmField val ZA_VAT = Type(JsonField.of("za_vat")) + @JvmField val ZA_VAT = of("za_vat") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -2663,6 +2651,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2878,23 +2878,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ProviderType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val QUICKBOOKS = ProviderType(JsonField.of("quickbooks")) + @JvmField val QUICKBOOKS = of("quickbooks") - @JvmField val NETSUITE = ProviderType(JsonField.of("netsuite")) + @JvmField val NETSUITE = of("netsuite") @JvmStatic fun of(value: String) = ProviderType(JsonField.of(value)) } @@ -2925,6 +2913,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ProviderType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateParams.kt index 4cb999d6..35f3abe9 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateParams.kt @@ -16,7 +16,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.util.Objects import java.util.Optional @@ -342,23 +341,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val INCREMENT = Type(JsonField.of("increment")) + @JvmField val INCREMENT = of("increment") - @JvmField val DECREMENT = Type(JsonField.of("decrement")) + @JvmField val DECREMENT = of("decrement") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -389,6 +376,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateResponse.kt index bce0cd97..e6e4db3f 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateResponse.kt @@ -285,35 +285,23 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Action && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val APPLIED_TO_INVOICE = Action(JsonField.of("applied_to_invoice")) + @JvmField val APPLIED_TO_INVOICE = of("applied_to_invoice") - @JvmField val MANUAL_ADJUSTMENT = Action(JsonField.of("manual_adjustment")) + @JvmField val MANUAL_ADJUSTMENT = of("manual_adjustment") - @JvmField val PRORATED_REFUND = Action(JsonField.of("prorated_refund")) + @JvmField val PRORATED_REFUND = of("prorated_refund") - @JvmField val REVERT_PRORATED_REFUND = Action(JsonField.of("revert_prorated_refund")) + @JvmField val REVERT_PRORATED_REFUND = of("revert_prorated_refund") - @JvmField val RETURN_FROM_VOIDING = Action(JsonField.of("return_from_voiding")) + @JvmField val RETURN_FROM_VOIDING = of("return_from_voiding") - @JvmField val CREDIT_NOTE_APPLIED = Action(JsonField.of("credit_note_applied")) + @JvmField val CREDIT_NOTE_APPLIED = of("credit_note_applied") - @JvmField val CREDIT_NOTE_VOIDED = Action(JsonField.of("credit_note_voided")) + @JvmField val CREDIT_NOTE_VOIDED = of("credit_note_voided") - @JvmField val OVERPAYMENT_REFUND = Action(JsonField.of("overpayment_refund")) + @JvmField val OVERPAYMENT_REFUND = of("overpayment_refund") @JvmStatic fun of(value: String) = Action(JsonField.of(value)) } @@ -368,6 +356,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Action && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditNote.Builder::class) @@ -552,23 +552,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val INCREMENT = Type(JsonField.of("increment")) + @JvmField val INCREMENT = of("increment") - @JvmField val DECREMENT = Type(JsonField.of("decrement")) + @JvmField val DECREMENT = of("decrement") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -599,6 +587,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListParams.kt index 7c52f5d6..51e8497c 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import java.time.format.DateTimeFormatter import java.util.Objects diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListResponse.kt index 00114666..777f95af 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListResponse.kt @@ -285,35 +285,23 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Action && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val APPLIED_TO_INVOICE = Action(JsonField.of("applied_to_invoice")) + @JvmField val APPLIED_TO_INVOICE = of("applied_to_invoice") - @JvmField val MANUAL_ADJUSTMENT = Action(JsonField.of("manual_adjustment")) + @JvmField val MANUAL_ADJUSTMENT = of("manual_adjustment") - @JvmField val PRORATED_REFUND = Action(JsonField.of("prorated_refund")) + @JvmField val PRORATED_REFUND = of("prorated_refund") - @JvmField val REVERT_PRORATED_REFUND = Action(JsonField.of("revert_prorated_refund")) + @JvmField val REVERT_PRORATED_REFUND = of("revert_prorated_refund") - @JvmField val RETURN_FROM_VOIDING = Action(JsonField.of("return_from_voiding")) + @JvmField val RETURN_FROM_VOIDING = of("return_from_voiding") - @JvmField val CREDIT_NOTE_APPLIED = Action(JsonField.of("credit_note_applied")) + @JvmField val CREDIT_NOTE_APPLIED = of("credit_note_applied") - @JvmField val CREDIT_NOTE_VOIDED = Action(JsonField.of("credit_note_voided")) + @JvmField val CREDIT_NOTE_VOIDED = of("credit_note_voided") - @JvmField val OVERPAYMENT_REFUND = Action(JsonField.of("overpayment_refund")) + @JvmField val OVERPAYMENT_REFUND = of("overpayment_refund") @JvmStatic fun of(value: String) = Action(JsonField.of(value)) } @@ -368,6 +356,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Action && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditNote.Builder::class) @@ -552,23 +552,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val INCREMENT = Type(JsonField.of("increment")) + @JvmField val INCREMENT = of("increment") - @JvmField val DECREMENT = Type(JsonField.of("decrement")) + @JvmField val DECREMENT = of("decrement") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -599,6 +587,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListByExternalIdParams.kt index d9164e7e..49264697 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListByExternalIdParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListByExternalIdParams.kt @@ -5,12 +5,10 @@ package com.withorb.api.models import com.fasterxml.jackson.annotation.JsonCreator import com.withorb.api.core.Enum import com.withorb.api.core.JsonField -import com.withorb.api.core.JsonValue import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.OffsetDateTime import java.time.format.DateTimeFormatter import java.util.Objects @@ -244,23 +242,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ViewMode && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERIODIC = ViewMode(JsonField.of("periodic")) + @JvmField val PERIODIC = of("periodic") - @JvmField val CUMULATIVE = ViewMode(JsonField.of("cumulative")) + @JvmField val CUMULATIVE = of("cumulative") @JvmStatic fun of(value: String) = ViewMode(JsonField.of(value)) } @@ -291,6 +277,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ViewMode && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListParams.kt index 40c62f3f..e951305b 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListParams.kt @@ -5,12 +5,10 @@ package com.withorb.api.models import com.fasterxml.jackson.annotation.JsonCreator import com.withorb.api.core.Enum import com.withorb.api.core.JsonField -import com.withorb.api.core.JsonValue import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.OffsetDateTime import java.time.format.DateTimeFormatter import java.util.Objects @@ -238,23 +236,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ViewMode && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERIODIC = ViewMode(JsonField.of("periodic")) + @JvmField val PERIODIC = of("periodic") - @JvmField val CUMULATIVE = ViewMode(JsonField.of("cumulative")) + @JvmField val CUMULATIVE = of("cumulative") @JvmStatic fun of(value: String) = ViewMode(JsonField.of(value)) } @@ -285,6 +271,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ViewMode && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreateParams.kt index df9f6e39..ad37443a 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreateParams.kt @@ -26,7 +26,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.util.Objects import java.util.Optional import kotlin.jvm.optionals.getOrNull @@ -1445,29 +1444,17 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is PaymentProvider && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val QUICKBOOKS = PaymentProvider(JsonField.of("quickbooks")) + @JvmField val QUICKBOOKS = of("quickbooks") - @JvmField val BILL_COM = PaymentProvider(JsonField.of("bill.com")) + @JvmField val BILL_COM = of("bill.com") - @JvmField val STRIPE_CHARGE = PaymentProvider(JsonField.of("stripe_charge")) + @JvmField val STRIPE_CHARGE = of("stripe_charge") - @JvmField val STRIPE_INVOICE = PaymentProvider(JsonField.of("stripe_invoice")) + @JvmField val STRIPE_INVOICE = of("stripe_invoice") - @JvmField val NETSUITE = PaymentProvider(JsonField.of("netsuite")) + @JvmField val NETSUITE = of("netsuite") @JvmStatic fun of(value: String) = PaymentProvider(JsonField.of(value)) } @@ -1510,6 +1497,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PaymentProvider && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = ReportingConfiguration.Builder::class) @@ -1962,21 +1961,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is TaxProvider && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AVALARA = TaxProvider(JsonField.of("avalara")) + @JvmField val AVALARA = of("avalara") @JvmStatic fun of(value: String) = TaxProvider(JsonField.of(value)) } @@ -2003,6 +1990,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is TaxProvider && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2119,21 +2118,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is TaxProvider && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val TAXJAR = TaxProvider(JsonField.of("taxjar")) + @JvmField val TAXJAR = of("taxjar") @JvmStatic fun of(value: String) = TaxProvider(JsonField.of(value)) } @@ -2160,6 +2147,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is TaxProvider && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2367,175 +2366,163 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Country && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AD = Country(JsonField.of("AD")) + @JvmField val AD = of("AD") - @JvmField val AE = Country(JsonField.of("AE")) + @JvmField val AE = of("AE") - @JvmField val AR = Country(JsonField.of("AR")) + @JvmField val AR = of("AR") - @JvmField val AT = Country(JsonField.of("AT")) + @JvmField val AT = of("AT") - @JvmField val AU = Country(JsonField.of("AU")) + @JvmField val AU = of("AU") - @JvmField val BE = Country(JsonField.of("BE")) + @JvmField val BE = of("BE") - @JvmField val BG = Country(JsonField.of("BG")) + @JvmField val BG = of("BG") - @JvmField val BH = Country(JsonField.of("BH")) + @JvmField val BH = of("BH") - @JvmField val BO = Country(JsonField.of("BO")) + @JvmField val BO = of("BO") - @JvmField val BR = Country(JsonField.of("BR")) + @JvmField val BR = of("BR") - @JvmField val CA = Country(JsonField.of("CA")) + @JvmField val CA = of("CA") - @JvmField val CH = Country(JsonField.of("CH")) + @JvmField val CH = of("CH") - @JvmField val CL = Country(JsonField.of("CL")) + @JvmField val CL = of("CL") - @JvmField val CN = Country(JsonField.of("CN")) + @JvmField val CN = of("CN") - @JvmField val CO = Country(JsonField.of("CO")) + @JvmField val CO = of("CO") - @JvmField val CR = Country(JsonField.of("CR")) + @JvmField val CR = of("CR") - @JvmField val CY = Country(JsonField.of("CY")) + @JvmField val CY = of("CY") - @JvmField val CZ = Country(JsonField.of("CZ")) + @JvmField val CZ = of("CZ") - @JvmField val DE = Country(JsonField.of("DE")) + @JvmField val DE = of("DE") - @JvmField val DK = Country(JsonField.of("DK")) + @JvmField val DK = of("DK") - @JvmField val EE = Country(JsonField.of("EE")) + @JvmField val EE = of("EE") - @JvmField val DO = Country(JsonField.of("DO")) + @JvmField val DO = of("DO") - @JvmField val EC = Country(JsonField.of("EC")) + @JvmField val EC = of("EC") - @JvmField val EG = Country(JsonField.of("EG")) + @JvmField val EG = of("EG") - @JvmField val ES = Country(JsonField.of("ES")) + @JvmField val ES = of("ES") - @JvmField val EU = Country(JsonField.of("EU")) + @JvmField val EU = of("EU") - @JvmField val FI = Country(JsonField.of("FI")) + @JvmField val FI = of("FI") - @JvmField val FR = Country(JsonField.of("FR")) + @JvmField val FR = of("FR") - @JvmField val GB = Country(JsonField.of("GB")) + @JvmField val GB = of("GB") - @JvmField val GE = Country(JsonField.of("GE")) + @JvmField val GE = of("GE") - @JvmField val GR = Country(JsonField.of("GR")) + @JvmField val GR = of("GR") - @JvmField val HK = Country(JsonField.of("HK")) + @JvmField val HK = of("HK") - @JvmField val HR = Country(JsonField.of("HR")) + @JvmField val HR = of("HR") - @JvmField val HU = Country(JsonField.of("HU")) + @JvmField val HU = of("HU") - @JvmField val ID = Country(JsonField.of("ID")) + @JvmField val ID = of("ID") - @JvmField val IE = Country(JsonField.of("IE")) + @JvmField val IE = of("IE") - @JvmField val IL = Country(JsonField.of("IL")) + @JvmField val IL = of("IL") - @JvmField val IN = Country(JsonField.of("IN")) + @JvmField val IN = of("IN") - @JvmField val IS = Country(JsonField.of("IS")) + @JvmField val IS = of("IS") - @JvmField val IT = Country(JsonField.of("IT")) + @JvmField val IT = of("IT") - @JvmField val JP = Country(JsonField.of("JP")) + @JvmField val JP = of("JP") - @JvmField val KE = Country(JsonField.of("KE")) + @JvmField val KE = of("KE") - @JvmField val KR = Country(JsonField.of("KR")) + @JvmField val KR = of("KR") - @JvmField val KZ = Country(JsonField.of("KZ")) + @JvmField val KZ = of("KZ") - @JvmField val LI = Country(JsonField.of("LI")) + @JvmField val LI = of("LI") - @JvmField val LT = Country(JsonField.of("LT")) + @JvmField val LT = of("LT") - @JvmField val LU = Country(JsonField.of("LU")) + @JvmField val LU = of("LU") - @JvmField val LV = Country(JsonField.of("LV")) + @JvmField val LV = of("LV") - @JvmField val MT = Country(JsonField.of("MT")) + @JvmField val MT = of("MT") - @JvmField val MX = Country(JsonField.of("MX")) + @JvmField val MX = of("MX") - @JvmField val MY = Country(JsonField.of("MY")) + @JvmField val MY = of("MY") - @JvmField val NG = Country(JsonField.of("NG")) + @JvmField val NG = of("NG") - @JvmField val NL = Country(JsonField.of("NL")) + @JvmField val NL = of("NL") - @JvmField val NO = Country(JsonField.of("NO")) + @JvmField val NO = of("NO") - @JvmField val NZ = Country(JsonField.of("NZ")) + @JvmField val NZ = of("NZ") - @JvmField val OM = Country(JsonField.of("OM")) + @JvmField val OM = of("OM") - @JvmField val PE = Country(JsonField.of("PE")) + @JvmField val PE = of("PE") - @JvmField val PH = Country(JsonField.of("PH")) + @JvmField val PH = of("PH") - @JvmField val PL = Country(JsonField.of("PL")) + @JvmField val PL = of("PL") - @JvmField val PT = Country(JsonField.of("PT")) + @JvmField val PT = of("PT") - @JvmField val RO = Country(JsonField.of("RO")) + @JvmField val RO = of("RO") - @JvmField val RS = Country(JsonField.of("RS")) + @JvmField val RS = of("RS") - @JvmField val RU = Country(JsonField.of("RU")) + @JvmField val RU = of("RU") - @JvmField val SA = Country(JsonField.of("SA")) + @JvmField val SA = of("SA") - @JvmField val SE = Country(JsonField.of("SE")) + @JvmField val SE = of("SE") - @JvmField val SG = Country(JsonField.of("SG")) + @JvmField val SG = of("SG") - @JvmField val SI = Country(JsonField.of("SI")) + @JvmField val SI = of("SI") - @JvmField val SK = Country(JsonField.of("SK")) + @JvmField val SK = of("SK") - @JvmField val SV = Country(JsonField.of("SV")) + @JvmField val SV = of("SV") - @JvmField val TH = Country(JsonField.of("TH")) + @JvmField val TH = of("TH") - @JvmField val TR = Country(JsonField.of("TR")) + @JvmField val TR = of("TR") - @JvmField val TW = Country(JsonField.of("TW")) + @JvmField val TW = of("TW") - @JvmField val UA = Country(JsonField.of("UA")) + @JvmField val UA = of("UA") - @JvmField val US = Country(JsonField.of("US")) + @JvmField val US = of("US") - @JvmField val UY = Country(JsonField.of("UY")) + @JvmField val UY = of("UY") - @JvmField val VE = Country(JsonField.of("VE")) + @JvmField val VE = of("VE") - @JvmField val VN = Country(JsonField.of("VN")) + @JvmField val VN = of("VN") - @JvmField val ZA = Country(JsonField.of("ZA")) + @JvmField val ZA = of("ZA") @JvmStatic fun of(value: String) = Country(JsonField.of(value)) } @@ -2870,171 +2857,171 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is Country && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val AD_NRT = Type(JsonField.of("ad_nrt")) + @JvmField val AD_NRT = of("ad_nrt") - @JvmField val AE_TRN = Type(JsonField.of("ae_trn")) + @JvmField val AE_TRN = of("ae_trn") - @JvmField val AR_CUIT = Type(JsonField.of("ar_cuit")) + @JvmField val AR_CUIT = of("ar_cuit") - @JvmField val EU_VAT = Type(JsonField.of("eu_vat")) + @JvmField val EU_VAT = of("eu_vat") - @JvmField val AU_ABN = Type(JsonField.of("au_abn")) + @JvmField val AU_ABN = of("au_abn") - @JvmField val AU_ARN = Type(JsonField.of("au_arn")) + @JvmField val AU_ARN = of("au_arn") - @JvmField val BG_UIC = Type(JsonField.of("bg_uic")) + @JvmField val BG_UIC = of("bg_uic") - @JvmField val BH_VAT = Type(JsonField.of("bh_vat")) + @JvmField val BH_VAT = of("bh_vat") - @JvmField val BO_TIN = Type(JsonField.of("bo_tin")) + @JvmField val BO_TIN = of("bo_tin") - @JvmField val BR_CNPJ = Type(JsonField.of("br_cnpj")) + @JvmField val BR_CNPJ = of("br_cnpj") - @JvmField val BR_CPF = Type(JsonField.of("br_cpf")) + @JvmField val BR_CPF = of("br_cpf") - @JvmField val CA_BN = Type(JsonField.of("ca_bn")) + @JvmField val CA_BN = of("ca_bn") - @JvmField val CA_GST_HST = Type(JsonField.of("ca_gst_hst")) + @JvmField val CA_GST_HST = of("ca_gst_hst") - @JvmField val CA_PST_BC = Type(JsonField.of("ca_pst_bc")) + @JvmField val CA_PST_BC = of("ca_pst_bc") - @JvmField val CA_PST_MB = Type(JsonField.of("ca_pst_mb")) + @JvmField val CA_PST_MB = of("ca_pst_mb") - @JvmField val CA_PST_SK = Type(JsonField.of("ca_pst_sk")) + @JvmField val CA_PST_SK = of("ca_pst_sk") - @JvmField val CA_QST = Type(JsonField.of("ca_qst")) + @JvmField val CA_QST = of("ca_qst") - @JvmField val CH_VAT = Type(JsonField.of("ch_vat")) + @JvmField val CH_VAT = of("ch_vat") - @JvmField val CL_TIN = Type(JsonField.of("cl_tin")) + @JvmField val CL_TIN = of("cl_tin") - @JvmField val CN_TIN = Type(JsonField.of("cn_tin")) + @JvmField val CN_TIN = of("cn_tin") - @JvmField val CO_NIT = Type(JsonField.of("co_nit")) + @JvmField val CO_NIT = of("co_nit") - @JvmField val CR_TIN = Type(JsonField.of("cr_tin")) + @JvmField val CR_TIN = of("cr_tin") - @JvmField val DO_RCN = Type(JsonField.of("do_rcn")) + @JvmField val DO_RCN = of("do_rcn") - @JvmField val EC_RUC = Type(JsonField.of("ec_ruc")) + @JvmField val EC_RUC = of("ec_ruc") - @JvmField val EG_TIN = Type(JsonField.of("eg_tin")) + @JvmField val EG_TIN = of("eg_tin") - @JvmField val ES_CIF = Type(JsonField.of("es_cif")) + @JvmField val ES_CIF = of("es_cif") - @JvmField val EU_OSS_VAT = Type(JsonField.of("eu_oss_vat")) + @JvmField val EU_OSS_VAT = of("eu_oss_vat") - @JvmField val GB_VAT = Type(JsonField.of("gb_vat")) + @JvmField val GB_VAT = of("gb_vat") - @JvmField val GE_VAT = Type(JsonField.of("ge_vat")) + @JvmField val GE_VAT = of("ge_vat") - @JvmField val HK_BR = Type(JsonField.of("hk_br")) + @JvmField val HK_BR = of("hk_br") - @JvmField val HU_TIN = Type(JsonField.of("hu_tin")) + @JvmField val HU_TIN = of("hu_tin") - @JvmField val ID_NPWP = Type(JsonField.of("id_npwp")) + @JvmField val ID_NPWP = of("id_npwp") - @JvmField val IL_VAT = Type(JsonField.of("il_vat")) + @JvmField val IL_VAT = of("il_vat") - @JvmField val IN_GST = Type(JsonField.of("in_gst")) + @JvmField val IN_GST = of("in_gst") - @JvmField val IS_VAT = Type(JsonField.of("is_vat")) + @JvmField val IS_VAT = of("is_vat") - @JvmField val JP_CN = Type(JsonField.of("jp_cn")) + @JvmField val JP_CN = of("jp_cn") - @JvmField val JP_RN = Type(JsonField.of("jp_rn")) + @JvmField val JP_RN = of("jp_rn") - @JvmField val JP_TRN = Type(JsonField.of("jp_trn")) + @JvmField val JP_TRN = of("jp_trn") - @JvmField val KE_PIN = Type(JsonField.of("ke_pin")) + @JvmField val KE_PIN = of("ke_pin") - @JvmField val KR_BRN = Type(JsonField.of("kr_brn")) + @JvmField val KR_BRN = of("kr_brn") - @JvmField val KZ_BIN = Type(JsonField.of("kz_bin")) + @JvmField val KZ_BIN = of("kz_bin") - @JvmField val LI_UID = Type(JsonField.of("li_uid")) + @JvmField val LI_UID = of("li_uid") - @JvmField val MX_RFC = Type(JsonField.of("mx_rfc")) + @JvmField val MX_RFC = of("mx_rfc") - @JvmField val MY_FRP = Type(JsonField.of("my_frp")) + @JvmField val MY_FRP = of("my_frp") - @JvmField val MY_ITN = Type(JsonField.of("my_itn")) + @JvmField val MY_ITN = of("my_itn") - @JvmField val MY_SST = Type(JsonField.of("my_sst")) + @JvmField val MY_SST = of("my_sst") - @JvmField val NG_TIN = Type(JsonField.of("ng_tin")) + @JvmField val NG_TIN = of("ng_tin") - @JvmField val NO_VAT = Type(JsonField.of("no_vat")) + @JvmField val NO_VAT = of("no_vat") - @JvmField val NO_VOEC = Type(JsonField.of("no_voec")) + @JvmField val NO_VOEC = of("no_voec") - @JvmField val NZ_GST = Type(JsonField.of("nz_gst")) + @JvmField val NZ_GST = of("nz_gst") - @JvmField val OM_VAT = Type(JsonField.of("om_vat")) + @JvmField val OM_VAT = of("om_vat") - @JvmField val PE_RUC = Type(JsonField.of("pe_ruc")) + @JvmField val PE_RUC = of("pe_ruc") - @JvmField val PH_TIN = Type(JsonField.of("ph_tin")) + @JvmField val PH_TIN = of("ph_tin") - @JvmField val RO_TIN = Type(JsonField.of("ro_tin")) + @JvmField val RO_TIN = of("ro_tin") - @JvmField val RS_PIB = Type(JsonField.of("rs_pib")) + @JvmField val RS_PIB = of("rs_pib") - @JvmField val RU_INN = Type(JsonField.of("ru_inn")) + @JvmField val RU_INN = of("ru_inn") - @JvmField val RU_KPP = Type(JsonField.of("ru_kpp")) + @JvmField val RU_KPP = of("ru_kpp") - @JvmField val SA_VAT = Type(JsonField.of("sa_vat")) + @JvmField val SA_VAT = of("sa_vat") - @JvmField val SG_GST = Type(JsonField.of("sg_gst")) + @JvmField val SG_GST = of("sg_gst") - @JvmField val SG_UEN = Type(JsonField.of("sg_uen")) + @JvmField val SG_UEN = of("sg_uen") - @JvmField val SI_TIN = Type(JsonField.of("si_tin")) + @JvmField val SI_TIN = of("si_tin") - @JvmField val SV_NIT = Type(JsonField.of("sv_nit")) + @JvmField val SV_NIT = of("sv_nit") - @JvmField val TH_VAT = Type(JsonField.of("th_vat")) + @JvmField val TH_VAT = of("th_vat") - @JvmField val TR_TIN = Type(JsonField.of("tr_tin")) + @JvmField val TR_TIN = of("tr_tin") - @JvmField val TW_VAT = Type(JsonField.of("tw_vat")) + @JvmField val TW_VAT = of("tw_vat") - @JvmField val UA_VAT = Type(JsonField.of("ua_vat")) + @JvmField val UA_VAT = of("ua_vat") - @JvmField val US_EIN = Type(JsonField.of("us_ein")) + @JvmField val US_EIN = of("us_ein") - @JvmField val UY_RUC = Type(JsonField.of("uy_ruc")) + @JvmField val UY_RUC = of("uy_ruc") - @JvmField val VE_RIF = Type(JsonField.of("ve_rif")) + @JvmField val VE_RIF = of("ve_rif") - @JvmField val VN_TIN = Type(JsonField.of("vn_tin")) + @JvmField val VN_TIN = of("vn_tin") - @JvmField val ZA_VAT = Type(JsonField.of("za_vat")) + @JvmField val ZA_VAT = of("za_vat") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -3341,6 +3328,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdParams.kt index f51153b5..f85e73ea 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdParams.kt @@ -25,7 +25,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.LocalDate import java.time.OffsetDateTime import java.util.Objects @@ -871,21 +870,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val INCREMENT = EntryType(JsonField.of("increment")) + @JvmField val INCREMENT = of("increment") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -912,6 +899,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -1279,21 +1278,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DECREMENT = EntryType(JsonField.of("decrement")) + @JvmField val DECREMENT = of("decrement") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -1320,6 +1307,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -1597,21 +1596,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val EXPIRATION_CHANGE = EntryType(JsonField.of("expiration_change")) + @JvmField val EXPIRATION_CHANGE = of("expiration_change") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -1638,6 +1625,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -1884,21 +1883,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val VOID = EntryType(JsonField.of("void")) + @JvmField val VOID = of("void") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -1925,6 +1912,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -2002,21 +2001,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is VoidReason && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val REFUND = VoidReason(JsonField.of("refund")) + @JvmField val REFUND = of("refund") @JvmStatic fun of(value: String) = VoidReason(JsonField.of(value)) } @@ -2043,6 +2030,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is VoidReason && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2214,21 +2213,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMENDMENT = EntryType(JsonField.of("amendment")) + @JvmField val AMENDMENT = of("amendment") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -2255,6 +2242,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdResponse.kt index 3d982c2c..0c0f3f9a 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdResponse.kt @@ -906,23 +906,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -953,31 +941,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val INCREMENT = EntryType(JsonField.of("increment")) + @JvmField val INCREMENT = of("increment") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -1004,6 +992,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -1680,23 +1680,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -1727,31 +1715,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val DECREMENT = EntryType(JsonField.of("decrement")) + @JvmField val DECREMENT = of("decrement") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -1778,6 +1766,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -2430,23 +2430,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -2477,31 +2465,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val EXPIRATION_CHANGE = EntryType(JsonField.of("expiration_change")) + @JvmField val EXPIRATION_CHANGE = of("expiration_change") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -2528,6 +2516,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -3159,23 +3159,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -3206,31 +3194,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val CREDIT_BLOCK_EXPIRY = EntryType(JsonField.of("credit_block_expiry")) + @JvmField val CREDIT_BLOCK_EXPIRY = of("credit_block_expiry") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -3257,6 +3245,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -3919,23 +3919,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -3966,31 +3954,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val VOID = EntryType(JsonField.of("void")) + @JvmField val VOID = of("void") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -4017,6 +4005,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -4700,23 +4700,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -4747,31 +4735,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val VOID_INITIATED = EntryType(JsonField.of("void_initiated")) + @JvmField val VOID_INITIATED = of("void_initiated") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -4798,6 +4786,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -5429,23 +5429,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -5476,31 +5464,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val AMENDMENT = EntryType(JsonField.of("amendment")) + @JvmField val AMENDMENT = of("amendment") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -5527,6 +5515,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryParams.kt index 0cbd2e29..11496b97 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryParams.kt @@ -25,7 +25,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.LocalDate import java.time.OffsetDateTime import java.util.Objects @@ -853,21 +852,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val INCREMENT = EntryType(JsonField.of("increment")) + @JvmField val INCREMENT = of("increment") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -894,6 +881,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -1261,21 +1260,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DECREMENT = EntryType(JsonField.of("decrement")) + @JvmField val DECREMENT = of("decrement") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -1302,6 +1289,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -1579,21 +1578,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val EXPIRATION_CHANGE = EntryType(JsonField.of("expiration_change")) + @JvmField val EXPIRATION_CHANGE = of("expiration_change") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -1620,6 +1607,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -1866,21 +1865,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val VOID = EntryType(JsonField.of("void")) + @JvmField val VOID = of("void") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -1907,6 +1894,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -1984,21 +1983,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is VoidReason && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val REFUND = VoidReason(JsonField.of("refund")) + @JvmField val REFUND = of("refund") @JvmStatic fun of(value: String) = VoidReason(JsonField.of(value)) } @@ -2025,6 +2012,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is VoidReason && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2196,21 +2195,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMENDMENT = EntryType(JsonField.of("amendment")) + @JvmField val AMENDMENT = of("amendment") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -2237,6 +2224,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryResponse.kt index 6d4e88d6..fd7c20f8 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryResponse.kt @@ -893,23 +893,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -940,31 +928,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val INCREMENT = EntryType(JsonField.of("increment")) + @JvmField val INCREMENT = of("increment") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -991,6 +979,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -1667,23 +1667,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -1714,31 +1702,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val DECREMENT = EntryType(JsonField.of("decrement")) + @JvmField val DECREMENT = of("decrement") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -1765,6 +1753,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -2417,23 +2417,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -2464,31 +2452,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val EXPIRATION_CHANGE = EntryType(JsonField.of("expiration_change")) + @JvmField val EXPIRATION_CHANGE = of("expiration_change") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -2515,6 +2503,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -3146,23 +3146,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -3193,31 +3181,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val CREDIT_BLOCK_EXPIRY = EntryType(JsonField.of("credit_block_expiry")) + @JvmField val CREDIT_BLOCK_EXPIRY = of("credit_block_expiry") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -3244,6 +3232,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -3906,23 +3906,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -3953,31 +3941,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val VOID = EntryType(JsonField.of("void")) + @JvmField val VOID = of("void") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -4004,6 +3992,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -4687,23 +4687,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -4734,31 +4722,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val VOID_INITIATED = EntryType(JsonField.of("void_initiated")) + @JvmField val VOID_INITIATED = of("void_initiated") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -4785,6 +4773,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -5416,23 +5416,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -5463,31 +5451,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val AMENDMENT = EntryType(JsonField.of("amendment")) + @JvmField val AMENDMENT = of("amendment") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -5514,6 +5502,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdParams.kt index 3ae6849d..7228f220 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdParams.kt @@ -5,12 +5,10 @@ package com.withorb.api.models import com.fasterxml.jackson.annotation.JsonCreator import com.withorb.api.core.Enum import com.withorb.api.core.JsonField -import com.withorb.api.core.JsonValue import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.OffsetDateTime import java.time.format.DateTimeFormatter import java.util.Objects @@ -306,23 +304,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -353,43 +339,43 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val INCREMENT = EntryType(JsonField.of("increment")) + @JvmField val INCREMENT = of("increment") - @JvmField val DECREMENT = EntryType(JsonField.of("decrement")) + @JvmField val DECREMENT = of("decrement") - @JvmField val EXPIRATION_CHANGE = EntryType(JsonField.of("expiration_change")) + @JvmField val EXPIRATION_CHANGE = of("expiration_change") - @JvmField val CREDIT_BLOCK_EXPIRY = EntryType(JsonField.of("credit_block_expiry")) + @JvmField val CREDIT_BLOCK_EXPIRY = of("credit_block_expiry") - @JvmField val VOID = EntryType(JsonField.of("void")) + @JvmField val VOID = of("void") - @JvmField val VOID_INITIATED = EntryType(JsonField.of("void_initiated")) + @JvmField val VOID_INITIATED = of("void_initiated") - @JvmField val AMENDMENT = EntryType(JsonField.of("amendment")) + @JvmField val AMENDMENT = of("amendment") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -440,6 +426,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdResponse.kt index 68f847d2..542a6322 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdResponse.kt @@ -904,23 +904,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -951,31 +939,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val INCREMENT = EntryType(JsonField.of("increment")) + @JvmField val INCREMENT = of("increment") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -1002,6 +990,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -1678,23 +1678,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -1725,31 +1713,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val DECREMENT = EntryType(JsonField.of("decrement")) + @JvmField val DECREMENT = of("decrement") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -1776,6 +1764,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -2428,23 +2428,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -2475,31 +2463,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val EXPIRATION_CHANGE = EntryType(JsonField.of("expiration_change")) + @JvmField val EXPIRATION_CHANGE = of("expiration_change") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -2526,6 +2514,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -3157,23 +3157,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -3204,31 +3192,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val CREDIT_BLOCK_EXPIRY = EntryType(JsonField.of("credit_block_expiry")) + @JvmField val CREDIT_BLOCK_EXPIRY = of("credit_block_expiry") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -3255,6 +3243,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -3917,23 +3917,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -3964,31 +3952,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val VOID = EntryType(JsonField.of("void")) + @JvmField val VOID = of("void") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -4015,6 +4003,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -4698,23 +4698,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -4745,31 +4733,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val VOID_INITIATED = EntryType(JsonField.of("void_initiated")) + @JvmField val VOID_INITIATED = of("void_initiated") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -4796,6 +4784,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -5427,23 +5427,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -5474,31 +5462,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val AMENDMENT = EntryType(JsonField.of("amendment")) + @JvmField val AMENDMENT = of("amendment") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -5525,6 +5513,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListParams.kt index 9ff9c281..51fa6436 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListParams.kt @@ -5,12 +5,10 @@ package com.withorb.api.models import com.fasterxml.jackson.annotation.JsonCreator import com.withorb.api.core.Enum import com.withorb.api.core.JsonField -import com.withorb.api.core.JsonValue import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.OffsetDateTime import java.time.format.DateTimeFormatter import java.util.Objects @@ -298,23 +296,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -345,43 +331,43 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val INCREMENT = EntryType(JsonField.of("increment")) + @JvmField val INCREMENT = of("increment") - @JvmField val DECREMENT = EntryType(JsonField.of("decrement")) + @JvmField val DECREMENT = of("decrement") - @JvmField val EXPIRATION_CHANGE = EntryType(JsonField.of("expiration_change")) + @JvmField val EXPIRATION_CHANGE = of("expiration_change") - @JvmField val CREDIT_BLOCK_EXPIRY = EntryType(JsonField.of("credit_block_expiry")) + @JvmField val CREDIT_BLOCK_EXPIRY = of("credit_block_expiry") - @JvmField val VOID = EntryType(JsonField.of("void")) + @JvmField val VOID = of("void") - @JvmField val VOID_INITIATED = EntryType(JsonField.of("void_initiated")) + @JvmField val VOID_INITIATED = of("void_initiated") - @JvmField val AMENDMENT = EntryType(JsonField.of("amendment")) + @JvmField val AMENDMENT = of("amendment") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -432,6 +418,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListResponse.kt index f3f86b47..3aeeff8a 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListResponse.kt @@ -884,23 +884,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -931,31 +919,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val INCREMENT = EntryType(JsonField.of("increment")) + @JvmField val INCREMENT = of("increment") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -982,6 +970,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -1658,23 +1658,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -1705,31 +1693,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val DECREMENT = EntryType(JsonField.of("decrement")) + @JvmField val DECREMENT = of("decrement") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -1756,6 +1744,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -2408,23 +2408,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -2455,31 +2443,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val EXPIRATION_CHANGE = EntryType(JsonField.of("expiration_change")) + @JvmField val EXPIRATION_CHANGE = of("expiration_change") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -2506,6 +2494,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -3137,23 +3137,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -3184,31 +3172,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val CREDIT_BLOCK_EXPIRY = EntryType(JsonField.of("credit_block_expiry")) + @JvmField val CREDIT_BLOCK_EXPIRY = of("credit_block_expiry") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -3235,6 +3223,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -3897,23 +3897,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -3944,31 +3932,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val VOID = EntryType(JsonField.of("void")) + @JvmField val VOID = of("void") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -3995,6 +3983,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -4678,23 +4678,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -4725,31 +4713,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val VOID_INITIATED = EntryType(JsonField.of("void_initiated")) + @JvmField val VOID_INITIATED = of("void_initiated") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -4776,6 +4764,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -5407,23 +5407,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val COMMITTED = EntryStatus(JsonField.of("committed")) + @JvmField val COMMITTED = of("committed") - @JvmField val PENDING = EntryStatus(JsonField.of("pending")) + @JvmField val PENDING = of("pending") @JvmStatic fun of(value: String) = EntryStatus(JsonField.of(value)) } @@ -5454,31 +5442,31 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EntryType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + return /* spotless:off */ other is EntryStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EntryType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val AMENDMENT = EntryType(JsonField.of("amendment")) + @JvmField val AMENDMENT = of("amendment") @JvmStatic fun of(value: String) = EntryType(JsonField.of(value)) } @@ -5505,6 +5493,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EntryType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdParams.kt index ea4a7048..0b4023ff 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdResponse.kt index 7b28e7d0..d6dbdd52 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdResponse.kt @@ -205,23 +205,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val PENDING_PAYMENT = Status(JsonField.of("pending_payment")) + @JvmField val PENDING_PAYMENT = of("pending_payment") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -252,6 +240,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListParams.kt index 9f36d7ea..e56c59c3 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListResponse.kt index 7377d82d..1897b053 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListResponse.kt @@ -202,23 +202,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val PENDING_PAYMENT = Status(JsonField.of("pending_payment")) + @JvmField val PENDING_PAYMENT = of("pending_payment") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -249,6 +237,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdParams.kt index a2ad9967..2e07c223 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdParams.kt @@ -16,7 +16,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.util.Objects import java.util.Optional @@ -614,23 +613,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ExpiresAfterUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = ExpiresAfterUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = ExpiresAfterUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = ExpiresAfterUnit(JsonField.of(value)) } @@ -661,6 +648,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ExpiresAfterUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdResponse.kt index 26c79d30..1ff15716 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdResponse.kt @@ -472,23 +472,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ExpiresAfterUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = ExpiresAfterUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = ExpiresAfterUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = ExpiresAfterUnit(JsonField.of(value)) } @@ -519,6 +507,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ExpiresAfterUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateParams.kt index 9f6f63dc..d47dae23 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateParams.kt @@ -16,7 +16,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.util.Objects import java.util.Optional @@ -607,23 +606,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ExpiresAfterUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = ExpiresAfterUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = ExpiresAfterUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = ExpiresAfterUnit(JsonField.of(value)) } @@ -654,6 +641,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ExpiresAfterUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateResponse.kt index a7f53c37..1b30edc6 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateResponse.kt @@ -470,23 +470,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ExpiresAfterUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = ExpiresAfterUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = ExpiresAfterUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = ExpiresAfterUnit(JsonField.of(value)) } @@ -517,6 +505,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ExpiresAfterUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteByExternalIdParams.kt index 9f3332f6..12ce4ee1 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteByExternalIdParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteByExternalIdParams.kt @@ -7,7 +7,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteParams.kt index b0966567..6b3231af 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteParams.kt @@ -7,7 +7,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdParams.kt index e81ba4de..940a23d9 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdResponse.kt index 72ccc9c0..73d72adf 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdResponse.kt @@ -471,23 +471,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ExpiresAfterUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = ExpiresAfterUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = ExpiresAfterUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = ExpiresAfterUnit(JsonField.of(value)) } @@ -518,6 +506,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ExpiresAfterUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListParams.kt index a41e01d9..9d091362 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListResponse.kt index d619f49a..52c0f4b6 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListResponse.kt @@ -470,23 +470,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ExpiresAfterUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = ExpiresAfterUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = ExpiresAfterUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = ExpiresAfterUnit(JsonField.of(value)) } @@ -517,6 +505,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ExpiresAfterUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerDeleteParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerDeleteParams.kt index 7099ec1d..5600bad4 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerDeleteParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerDeleteParams.kt @@ -7,7 +7,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchByExternalIdParams.kt index cfae1436..c08aec62 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchByExternalIdParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchByExternalIdParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class CustomerFetchByExternalIdParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchParams.kt index cf2d21e5..854ccfbc 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class CustomerFetchParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListParams.kt index c2f923e5..83c7dc56 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import java.time.format.DateTimeFormatter import java.util.Objects diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParams.kt index 413a7f53..aa29cfca 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParams.kt @@ -26,7 +26,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.util.Objects import java.util.Optional import kotlin.jvm.optionals.getOrNull @@ -1432,29 +1431,17 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is PaymentProvider && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val QUICKBOOKS = PaymentProvider(JsonField.of("quickbooks")) + @JvmField val QUICKBOOKS = of("quickbooks") - @JvmField val BILL_COM = PaymentProvider(JsonField.of("bill.com")) + @JvmField val BILL_COM = of("bill.com") - @JvmField val STRIPE_CHARGE = PaymentProvider(JsonField.of("stripe_charge")) + @JvmField val STRIPE_CHARGE = of("stripe_charge") - @JvmField val STRIPE_INVOICE = PaymentProvider(JsonField.of("stripe_invoice")) + @JvmField val STRIPE_INVOICE = of("stripe_invoice") - @JvmField val NETSUITE = PaymentProvider(JsonField.of("netsuite")) + @JvmField val NETSUITE = of("netsuite") @JvmStatic fun of(value: String) = PaymentProvider(JsonField.of(value)) } @@ -1497,6 +1484,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PaymentProvider && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = ReportingConfiguration.Builder::class) @@ -1949,21 +1948,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is TaxProvider && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AVALARA = TaxProvider(JsonField.of("avalara")) + @JvmField val AVALARA = of("avalara") @JvmStatic fun of(value: String) = TaxProvider(JsonField.of(value)) } @@ -1990,6 +1977,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is TaxProvider && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2106,21 +2105,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is TaxProvider && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val TAXJAR = TaxProvider(JsonField.of("taxjar")) + @JvmField val TAXJAR = of("taxjar") @JvmStatic fun of(value: String) = TaxProvider(JsonField.of(value)) } @@ -2147,6 +2134,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is TaxProvider && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2354,175 +2353,163 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Country && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AD = Country(JsonField.of("AD")) + @JvmField val AD = of("AD") - @JvmField val AE = Country(JsonField.of("AE")) + @JvmField val AE = of("AE") - @JvmField val AR = Country(JsonField.of("AR")) + @JvmField val AR = of("AR") - @JvmField val AT = Country(JsonField.of("AT")) + @JvmField val AT = of("AT") - @JvmField val AU = Country(JsonField.of("AU")) + @JvmField val AU = of("AU") - @JvmField val BE = Country(JsonField.of("BE")) + @JvmField val BE = of("BE") - @JvmField val BG = Country(JsonField.of("BG")) + @JvmField val BG = of("BG") - @JvmField val BH = Country(JsonField.of("BH")) + @JvmField val BH = of("BH") - @JvmField val BO = Country(JsonField.of("BO")) + @JvmField val BO = of("BO") - @JvmField val BR = Country(JsonField.of("BR")) + @JvmField val BR = of("BR") - @JvmField val CA = Country(JsonField.of("CA")) + @JvmField val CA = of("CA") - @JvmField val CH = Country(JsonField.of("CH")) + @JvmField val CH = of("CH") - @JvmField val CL = Country(JsonField.of("CL")) + @JvmField val CL = of("CL") - @JvmField val CN = Country(JsonField.of("CN")) + @JvmField val CN = of("CN") - @JvmField val CO = Country(JsonField.of("CO")) + @JvmField val CO = of("CO") - @JvmField val CR = Country(JsonField.of("CR")) + @JvmField val CR = of("CR") - @JvmField val CY = Country(JsonField.of("CY")) + @JvmField val CY = of("CY") - @JvmField val CZ = Country(JsonField.of("CZ")) + @JvmField val CZ = of("CZ") - @JvmField val DE = Country(JsonField.of("DE")) + @JvmField val DE = of("DE") - @JvmField val DK = Country(JsonField.of("DK")) + @JvmField val DK = of("DK") - @JvmField val EE = Country(JsonField.of("EE")) + @JvmField val EE = of("EE") - @JvmField val DO = Country(JsonField.of("DO")) + @JvmField val DO = of("DO") - @JvmField val EC = Country(JsonField.of("EC")) + @JvmField val EC = of("EC") - @JvmField val EG = Country(JsonField.of("EG")) + @JvmField val EG = of("EG") - @JvmField val ES = Country(JsonField.of("ES")) + @JvmField val ES = of("ES") - @JvmField val EU = Country(JsonField.of("EU")) + @JvmField val EU = of("EU") - @JvmField val FI = Country(JsonField.of("FI")) + @JvmField val FI = of("FI") - @JvmField val FR = Country(JsonField.of("FR")) + @JvmField val FR = of("FR") - @JvmField val GB = Country(JsonField.of("GB")) + @JvmField val GB = of("GB") - @JvmField val GE = Country(JsonField.of("GE")) + @JvmField val GE = of("GE") - @JvmField val GR = Country(JsonField.of("GR")) + @JvmField val GR = of("GR") - @JvmField val HK = Country(JsonField.of("HK")) + @JvmField val HK = of("HK") - @JvmField val HR = Country(JsonField.of("HR")) + @JvmField val HR = of("HR") - @JvmField val HU = Country(JsonField.of("HU")) + @JvmField val HU = of("HU") - @JvmField val ID = Country(JsonField.of("ID")) + @JvmField val ID = of("ID") - @JvmField val IE = Country(JsonField.of("IE")) + @JvmField val IE = of("IE") - @JvmField val IL = Country(JsonField.of("IL")) + @JvmField val IL = of("IL") - @JvmField val IN = Country(JsonField.of("IN")) + @JvmField val IN = of("IN") - @JvmField val IS = Country(JsonField.of("IS")) + @JvmField val IS = of("IS") - @JvmField val IT = Country(JsonField.of("IT")) + @JvmField val IT = of("IT") - @JvmField val JP = Country(JsonField.of("JP")) + @JvmField val JP = of("JP") - @JvmField val KE = Country(JsonField.of("KE")) + @JvmField val KE = of("KE") - @JvmField val KR = Country(JsonField.of("KR")) + @JvmField val KR = of("KR") - @JvmField val KZ = Country(JsonField.of("KZ")) + @JvmField val KZ = of("KZ") - @JvmField val LI = Country(JsonField.of("LI")) + @JvmField val LI = of("LI") - @JvmField val LT = Country(JsonField.of("LT")) + @JvmField val LT = of("LT") - @JvmField val LU = Country(JsonField.of("LU")) + @JvmField val LU = of("LU") - @JvmField val LV = Country(JsonField.of("LV")) + @JvmField val LV = of("LV") - @JvmField val MT = Country(JsonField.of("MT")) + @JvmField val MT = of("MT") - @JvmField val MX = Country(JsonField.of("MX")) + @JvmField val MX = of("MX") - @JvmField val MY = Country(JsonField.of("MY")) + @JvmField val MY = of("MY") - @JvmField val NG = Country(JsonField.of("NG")) + @JvmField val NG = of("NG") - @JvmField val NL = Country(JsonField.of("NL")) + @JvmField val NL = of("NL") - @JvmField val NO = Country(JsonField.of("NO")) + @JvmField val NO = of("NO") - @JvmField val NZ = Country(JsonField.of("NZ")) + @JvmField val NZ = of("NZ") - @JvmField val OM = Country(JsonField.of("OM")) + @JvmField val OM = of("OM") - @JvmField val PE = Country(JsonField.of("PE")) + @JvmField val PE = of("PE") - @JvmField val PH = Country(JsonField.of("PH")) + @JvmField val PH = of("PH") - @JvmField val PL = Country(JsonField.of("PL")) + @JvmField val PL = of("PL") - @JvmField val PT = Country(JsonField.of("PT")) + @JvmField val PT = of("PT") - @JvmField val RO = Country(JsonField.of("RO")) + @JvmField val RO = of("RO") - @JvmField val RS = Country(JsonField.of("RS")) + @JvmField val RS = of("RS") - @JvmField val RU = Country(JsonField.of("RU")) + @JvmField val RU = of("RU") - @JvmField val SA = Country(JsonField.of("SA")) + @JvmField val SA = of("SA") - @JvmField val SE = Country(JsonField.of("SE")) + @JvmField val SE = of("SE") - @JvmField val SG = Country(JsonField.of("SG")) + @JvmField val SG = of("SG") - @JvmField val SI = Country(JsonField.of("SI")) + @JvmField val SI = of("SI") - @JvmField val SK = Country(JsonField.of("SK")) + @JvmField val SK = of("SK") - @JvmField val SV = Country(JsonField.of("SV")) + @JvmField val SV = of("SV") - @JvmField val TH = Country(JsonField.of("TH")) + @JvmField val TH = of("TH") - @JvmField val TR = Country(JsonField.of("TR")) + @JvmField val TR = of("TR") - @JvmField val TW = Country(JsonField.of("TW")) + @JvmField val TW = of("TW") - @JvmField val UA = Country(JsonField.of("UA")) + @JvmField val UA = of("UA") - @JvmField val US = Country(JsonField.of("US")) + @JvmField val US = of("US") - @JvmField val UY = Country(JsonField.of("UY")) + @JvmField val UY = of("UY") - @JvmField val VE = Country(JsonField.of("VE")) + @JvmField val VE = of("VE") - @JvmField val VN = Country(JsonField.of("VN")) + @JvmField val VN = of("VN") - @JvmField val ZA = Country(JsonField.of("ZA")) + @JvmField val ZA = of("ZA") @JvmStatic fun of(value: String) = Country(JsonField.of(value)) } @@ -2857,171 +2844,171 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is Country && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val AD_NRT = Type(JsonField.of("ad_nrt")) + @JvmField val AD_NRT = of("ad_nrt") - @JvmField val AE_TRN = Type(JsonField.of("ae_trn")) + @JvmField val AE_TRN = of("ae_trn") - @JvmField val AR_CUIT = Type(JsonField.of("ar_cuit")) + @JvmField val AR_CUIT = of("ar_cuit") - @JvmField val EU_VAT = Type(JsonField.of("eu_vat")) + @JvmField val EU_VAT = of("eu_vat") - @JvmField val AU_ABN = Type(JsonField.of("au_abn")) + @JvmField val AU_ABN = of("au_abn") - @JvmField val AU_ARN = Type(JsonField.of("au_arn")) + @JvmField val AU_ARN = of("au_arn") - @JvmField val BG_UIC = Type(JsonField.of("bg_uic")) + @JvmField val BG_UIC = of("bg_uic") - @JvmField val BH_VAT = Type(JsonField.of("bh_vat")) + @JvmField val BH_VAT = of("bh_vat") - @JvmField val BO_TIN = Type(JsonField.of("bo_tin")) + @JvmField val BO_TIN = of("bo_tin") - @JvmField val BR_CNPJ = Type(JsonField.of("br_cnpj")) + @JvmField val BR_CNPJ = of("br_cnpj") - @JvmField val BR_CPF = Type(JsonField.of("br_cpf")) + @JvmField val BR_CPF = of("br_cpf") - @JvmField val CA_BN = Type(JsonField.of("ca_bn")) + @JvmField val CA_BN = of("ca_bn") - @JvmField val CA_GST_HST = Type(JsonField.of("ca_gst_hst")) + @JvmField val CA_GST_HST = of("ca_gst_hst") - @JvmField val CA_PST_BC = Type(JsonField.of("ca_pst_bc")) + @JvmField val CA_PST_BC = of("ca_pst_bc") - @JvmField val CA_PST_MB = Type(JsonField.of("ca_pst_mb")) + @JvmField val CA_PST_MB = of("ca_pst_mb") - @JvmField val CA_PST_SK = Type(JsonField.of("ca_pst_sk")) + @JvmField val CA_PST_SK = of("ca_pst_sk") - @JvmField val CA_QST = Type(JsonField.of("ca_qst")) + @JvmField val CA_QST = of("ca_qst") - @JvmField val CH_VAT = Type(JsonField.of("ch_vat")) + @JvmField val CH_VAT = of("ch_vat") - @JvmField val CL_TIN = Type(JsonField.of("cl_tin")) + @JvmField val CL_TIN = of("cl_tin") - @JvmField val CN_TIN = Type(JsonField.of("cn_tin")) + @JvmField val CN_TIN = of("cn_tin") - @JvmField val CO_NIT = Type(JsonField.of("co_nit")) + @JvmField val CO_NIT = of("co_nit") - @JvmField val CR_TIN = Type(JsonField.of("cr_tin")) + @JvmField val CR_TIN = of("cr_tin") - @JvmField val DO_RCN = Type(JsonField.of("do_rcn")) + @JvmField val DO_RCN = of("do_rcn") - @JvmField val EC_RUC = Type(JsonField.of("ec_ruc")) + @JvmField val EC_RUC = of("ec_ruc") - @JvmField val EG_TIN = Type(JsonField.of("eg_tin")) + @JvmField val EG_TIN = of("eg_tin") - @JvmField val ES_CIF = Type(JsonField.of("es_cif")) + @JvmField val ES_CIF = of("es_cif") - @JvmField val EU_OSS_VAT = Type(JsonField.of("eu_oss_vat")) + @JvmField val EU_OSS_VAT = of("eu_oss_vat") - @JvmField val GB_VAT = Type(JsonField.of("gb_vat")) + @JvmField val GB_VAT = of("gb_vat") - @JvmField val GE_VAT = Type(JsonField.of("ge_vat")) + @JvmField val GE_VAT = of("ge_vat") - @JvmField val HK_BR = Type(JsonField.of("hk_br")) + @JvmField val HK_BR = of("hk_br") - @JvmField val HU_TIN = Type(JsonField.of("hu_tin")) + @JvmField val HU_TIN = of("hu_tin") - @JvmField val ID_NPWP = Type(JsonField.of("id_npwp")) + @JvmField val ID_NPWP = of("id_npwp") - @JvmField val IL_VAT = Type(JsonField.of("il_vat")) + @JvmField val IL_VAT = of("il_vat") - @JvmField val IN_GST = Type(JsonField.of("in_gst")) + @JvmField val IN_GST = of("in_gst") - @JvmField val IS_VAT = Type(JsonField.of("is_vat")) + @JvmField val IS_VAT = of("is_vat") - @JvmField val JP_CN = Type(JsonField.of("jp_cn")) + @JvmField val JP_CN = of("jp_cn") - @JvmField val JP_RN = Type(JsonField.of("jp_rn")) + @JvmField val JP_RN = of("jp_rn") - @JvmField val JP_TRN = Type(JsonField.of("jp_trn")) + @JvmField val JP_TRN = of("jp_trn") - @JvmField val KE_PIN = Type(JsonField.of("ke_pin")) + @JvmField val KE_PIN = of("ke_pin") - @JvmField val KR_BRN = Type(JsonField.of("kr_brn")) + @JvmField val KR_BRN = of("kr_brn") - @JvmField val KZ_BIN = Type(JsonField.of("kz_bin")) + @JvmField val KZ_BIN = of("kz_bin") - @JvmField val LI_UID = Type(JsonField.of("li_uid")) + @JvmField val LI_UID = of("li_uid") - @JvmField val MX_RFC = Type(JsonField.of("mx_rfc")) + @JvmField val MX_RFC = of("mx_rfc") - @JvmField val MY_FRP = Type(JsonField.of("my_frp")) + @JvmField val MY_FRP = of("my_frp") - @JvmField val MY_ITN = Type(JsonField.of("my_itn")) + @JvmField val MY_ITN = of("my_itn") - @JvmField val MY_SST = Type(JsonField.of("my_sst")) + @JvmField val MY_SST = of("my_sst") - @JvmField val NG_TIN = Type(JsonField.of("ng_tin")) + @JvmField val NG_TIN = of("ng_tin") - @JvmField val NO_VAT = Type(JsonField.of("no_vat")) + @JvmField val NO_VAT = of("no_vat") - @JvmField val NO_VOEC = Type(JsonField.of("no_voec")) + @JvmField val NO_VOEC = of("no_voec") - @JvmField val NZ_GST = Type(JsonField.of("nz_gst")) + @JvmField val NZ_GST = of("nz_gst") - @JvmField val OM_VAT = Type(JsonField.of("om_vat")) + @JvmField val OM_VAT = of("om_vat") - @JvmField val PE_RUC = Type(JsonField.of("pe_ruc")) + @JvmField val PE_RUC = of("pe_ruc") - @JvmField val PH_TIN = Type(JsonField.of("ph_tin")) + @JvmField val PH_TIN = of("ph_tin") - @JvmField val RO_TIN = Type(JsonField.of("ro_tin")) + @JvmField val RO_TIN = of("ro_tin") - @JvmField val RS_PIB = Type(JsonField.of("rs_pib")) + @JvmField val RS_PIB = of("rs_pib") - @JvmField val RU_INN = Type(JsonField.of("ru_inn")) + @JvmField val RU_INN = of("ru_inn") - @JvmField val RU_KPP = Type(JsonField.of("ru_kpp")) + @JvmField val RU_KPP = of("ru_kpp") - @JvmField val SA_VAT = Type(JsonField.of("sa_vat")) + @JvmField val SA_VAT = of("sa_vat") - @JvmField val SG_GST = Type(JsonField.of("sg_gst")) + @JvmField val SG_GST = of("sg_gst") - @JvmField val SG_UEN = Type(JsonField.of("sg_uen")) + @JvmField val SG_UEN = of("sg_uen") - @JvmField val SI_TIN = Type(JsonField.of("si_tin")) + @JvmField val SI_TIN = of("si_tin") - @JvmField val SV_NIT = Type(JsonField.of("sv_nit")) + @JvmField val SV_NIT = of("sv_nit") - @JvmField val TH_VAT = Type(JsonField.of("th_vat")) + @JvmField val TH_VAT = of("th_vat") - @JvmField val TR_TIN = Type(JsonField.of("tr_tin")) + @JvmField val TR_TIN = of("tr_tin") - @JvmField val TW_VAT = Type(JsonField.of("tw_vat")) + @JvmField val TW_VAT = of("tw_vat") - @JvmField val UA_VAT = Type(JsonField.of("ua_vat")) + @JvmField val UA_VAT = of("ua_vat") - @JvmField val US_EIN = Type(JsonField.of("us_ein")) + @JvmField val US_EIN = of("us_ein") - @JvmField val UY_RUC = Type(JsonField.of("uy_ruc")) + @JvmField val UY_RUC = of("uy_ruc") - @JvmField val VE_RIF = Type(JsonField.of("ve_rif")) + @JvmField val VE_RIF = of("ve_rif") - @JvmField val VN_TIN = Type(JsonField.of("vn_tin")) + @JvmField val VN_TIN = of("vn_tin") - @JvmField val ZA_VAT = Type(JsonField.of("za_vat")) + @JvmField val ZA_VAT = of("za_vat") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -3328,6 +3315,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateParams.kt index f5b8a420..70533729 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateParams.kt @@ -26,7 +26,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.util.Objects import java.util.Optional import kotlin.jvm.optionals.getOrNull @@ -1424,29 +1423,17 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is PaymentProvider && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val QUICKBOOKS = PaymentProvider(JsonField.of("quickbooks")) + @JvmField val QUICKBOOKS = of("quickbooks") - @JvmField val BILL_COM = PaymentProvider(JsonField.of("bill.com")) + @JvmField val BILL_COM = of("bill.com") - @JvmField val STRIPE_CHARGE = PaymentProvider(JsonField.of("stripe_charge")) + @JvmField val STRIPE_CHARGE = of("stripe_charge") - @JvmField val STRIPE_INVOICE = PaymentProvider(JsonField.of("stripe_invoice")) + @JvmField val STRIPE_INVOICE = of("stripe_invoice") - @JvmField val NETSUITE = PaymentProvider(JsonField.of("netsuite")) + @JvmField val NETSUITE = of("netsuite") @JvmStatic fun of(value: String) = PaymentProvider(JsonField.of(value)) } @@ -1489,6 +1476,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PaymentProvider && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = ReportingConfiguration.Builder::class) @@ -1941,21 +1940,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is TaxProvider && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AVALARA = TaxProvider(JsonField.of("avalara")) + @JvmField val AVALARA = of("avalara") @JvmStatic fun of(value: String) = TaxProvider(JsonField.of(value)) } @@ -1982,6 +1969,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is TaxProvider && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2098,21 +2097,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is TaxProvider && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val TAXJAR = TaxProvider(JsonField.of("taxjar")) + @JvmField val TAXJAR = of("taxjar") @JvmStatic fun of(value: String) = TaxProvider(JsonField.of(value)) } @@ -2139,6 +2126,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is TaxProvider && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2346,175 +2345,163 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Country && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AD = Country(JsonField.of("AD")) + @JvmField val AD = of("AD") - @JvmField val AE = Country(JsonField.of("AE")) + @JvmField val AE = of("AE") - @JvmField val AR = Country(JsonField.of("AR")) + @JvmField val AR = of("AR") - @JvmField val AT = Country(JsonField.of("AT")) + @JvmField val AT = of("AT") - @JvmField val AU = Country(JsonField.of("AU")) + @JvmField val AU = of("AU") - @JvmField val BE = Country(JsonField.of("BE")) + @JvmField val BE = of("BE") - @JvmField val BG = Country(JsonField.of("BG")) + @JvmField val BG = of("BG") - @JvmField val BH = Country(JsonField.of("BH")) + @JvmField val BH = of("BH") - @JvmField val BO = Country(JsonField.of("BO")) + @JvmField val BO = of("BO") - @JvmField val BR = Country(JsonField.of("BR")) + @JvmField val BR = of("BR") - @JvmField val CA = Country(JsonField.of("CA")) + @JvmField val CA = of("CA") - @JvmField val CH = Country(JsonField.of("CH")) + @JvmField val CH = of("CH") - @JvmField val CL = Country(JsonField.of("CL")) + @JvmField val CL = of("CL") - @JvmField val CN = Country(JsonField.of("CN")) + @JvmField val CN = of("CN") - @JvmField val CO = Country(JsonField.of("CO")) + @JvmField val CO = of("CO") - @JvmField val CR = Country(JsonField.of("CR")) + @JvmField val CR = of("CR") - @JvmField val CY = Country(JsonField.of("CY")) + @JvmField val CY = of("CY") - @JvmField val CZ = Country(JsonField.of("CZ")) + @JvmField val CZ = of("CZ") - @JvmField val DE = Country(JsonField.of("DE")) + @JvmField val DE = of("DE") - @JvmField val DK = Country(JsonField.of("DK")) + @JvmField val DK = of("DK") - @JvmField val EE = Country(JsonField.of("EE")) + @JvmField val EE = of("EE") - @JvmField val DO = Country(JsonField.of("DO")) + @JvmField val DO = of("DO") - @JvmField val EC = Country(JsonField.of("EC")) + @JvmField val EC = of("EC") - @JvmField val EG = Country(JsonField.of("EG")) + @JvmField val EG = of("EG") - @JvmField val ES = Country(JsonField.of("ES")) + @JvmField val ES = of("ES") - @JvmField val EU = Country(JsonField.of("EU")) + @JvmField val EU = of("EU") - @JvmField val FI = Country(JsonField.of("FI")) + @JvmField val FI = of("FI") - @JvmField val FR = Country(JsonField.of("FR")) + @JvmField val FR = of("FR") - @JvmField val GB = Country(JsonField.of("GB")) + @JvmField val GB = of("GB") - @JvmField val GE = Country(JsonField.of("GE")) + @JvmField val GE = of("GE") - @JvmField val GR = Country(JsonField.of("GR")) + @JvmField val GR = of("GR") - @JvmField val HK = Country(JsonField.of("HK")) + @JvmField val HK = of("HK") - @JvmField val HR = Country(JsonField.of("HR")) + @JvmField val HR = of("HR") - @JvmField val HU = Country(JsonField.of("HU")) + @JvmField val HU = of("HU") - @JvmField val ID = Country(JsonField.of("ID")) + @JvmField val ID = of("ID") - @JvmField val IE = Country(JsonField.of("IE")) + @JvmField val IE = of("IE") - @JvmField val IL = Country(JsonField.of("IL")) + @JvmField val IL = of("IL") - @JvmField val IN = Country(JsonField.of("IN")) + @JvmField val IN = of("IN") - @JvmField val IS = Country(JsonField.of("IS")) + @JvmField val IS = of("IS") - @JvmField val IT = Country(JsonField.of("IT")) + @JvmField val IT = of("IT") - @JvmField val JP = Country(JsonField.of("JP")) + @JvmField val JP = of("JP") - @JvmField val KE = Country(JsonField.of("KE")) + @JvmField val KE = of("KE") - @JvmField val KR = Country(JsonField.of("KR")) + @JvmField val KR = of("KR") - @JvmField val KZ = Country(JsonField.of("KZ")) + @JvmField val KZ = of("KZ") - @JvmField val LI = Country(JsonField.of("LI")) + @JvmField val LI = of("LI") - @JvmField val LT = Country(JsonField.of("LT")) + @JvmField val LT = of("LT") - @JvmField val LU = Country(JsonField.of("LU")) + @JvmField val LU = of("LU") - @JvmField val LV = Country(JsonField.of("LV")) + @JvmField val LV = of("LV") - @JvmField val MT = Country(JsonField.of("MT")) + @JvmField val MT = of("MT") - @JvmField val MX = Country(JsonField.of("MX")) + @JvmField val MX = of("MX") - @JvmField val MY = Country(JsonField.of("MY")) + @JvmField val MY = of("MY") - @JvmField val NG = Country(JsonField.of("NG")) + @JvmField val NG = of("NG") - @JvmField val NL = Country(JsonField.of("NL")) + @JvmField val NL = of("NL") - @JvmField val NO = Country(JsonField.of("NO")) + @JvmField val NO = of("NO") - @JvmField val NZ = Country(JsonField.of("NZ")) + @JvmField val NZ = of("NZ") - @JvmField val OM = Country(JsonField.of("OM")) + @JvmField val OM = of("OM") - @JvmField val PE = Country(JsonField.of("PE")) + @JvmField val PE = of("PE") - @JvmField val PH = Country(JsonField.of("PH")) + @JvmField val PH = of("PH") - @JvmField val PL = Country(JsonField.of("PL")) + @JvmField val PL = of("PL") - @JvmField val PT = Country(JsonField.of("PT")) + @JvmField val PT = of("PT") - @JvmField val RO = Country(JsonField.of("RO")) + @JvmField val RO = of("RO") - @JvmField val RS = Country(JsonField.of("RS")) + @JvmField val RS = of("RS") - @JvmField val RU = Country(JsonField.of("RU")) + @JvmField val RU = of("RU") - @JvmField val SA = Country(JsonField.of("SA")) + @JvmField val SA = of("SA") - @JvmField val SE = Country(JsonField.of("SE")) + @JvmField val SE = of("SE") - @JvmField val SG = Country(JsonField.of("SG")) + @JvmField val SG = of("SG") - @JvmField val SI = Country(JsonField.of("SI")) + @JvmField val SI = of("SI") - @JvmField val SK = Country(JsonField.of("SK")) + @JvmField val SK = of("SK") - @JvmField val SV = Country(JsonField.of("SV")) + @JvmField val SV = of("SV") - @JvmField val TH = Country(JsonField.of("TH")) + @JvmField val TH = of("TH") - @JvmField val TR = Country(JsonField.of("TR")) + @JvmField val TR = of("TR") - @JvmField val TW = Country(JsonField.of("TW")) + @JvmField val TW = of("TW") - @JvmField val UA = Country(JsonField.of("UA")) + @JvmField val UA = of("UA") - @JvmField val US = Country(JsonField.of("US")) + @JvmField val US = of("US") - @JvmField val UY = Country(JsonField.of("UY")) + @JvmField val UY = of("UY") - @JvmField val VE = Country(JsonField.of("VE")) + @JvmField val VE = of("VE") - @JvmField val VN = Country(JsonField.of("VN")) + @JvmField val VN = of("VN") - @JvmField val ZA = Country(JsonField.of("ZA")) + @JvmField val ZA = of("ZA") @JvmStatic fun of(value: String) = Country(JsonField.of(value)) } @@ -2849,171 +2836,171 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is Country && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val AD_NRT = Type(JsonField.of("ad_nrt")) + @JvmField val AD_NRT = of("ad_nrt") - @JvmField val AE_TRN = Type(JsonField.of("ae_trn")) + @JvmField val AE_TRN = of("ae_trn") - @JvmField val AR_CUIT = Type(JsonField.of("ar_cuit")) + @JvmField val AR_CUIT = of("ar_cuit") - @JvmField val EU_VAT = Type(JsonField.of("eu_vat")) + @JvmField val EU_VAT = of("eu_vat") - @JvmField val AU_ABN = Type(JsonField.of("au_abn")) + @JvmField val AU_ABN = of("au_abn") - @JvmField val AU_ARN = Type(JsonField.of("au_arn")) + @JvmField val AU_ARN = of("au_arn") - @JvmField val BG_UIC = Type(JsonField.of("bg_uic")) + @JvmField val BG_UIC = of("bg_uic") - @JvmField val BH_VAT = Type(JsonField.of("bh_vat")) + @JvmField val BH_VAT = of("bh_vat") - @JvmField val BO_TIN = Type(JsonField.of("bo_tin")) + @JvmField val BO_TIN = of("bo_tin") - @JvmField val BR_CNPJ = Type(JsonField.of("br_cnpj")) + @JvmField val BR_CNPJ = of("br_cnpj") - @JvmField val BR_CPF = Type(JsonField.of("br_cpf")) + @JvmField val BR_CPF = of("br_cpf") - @JvmField val CA_BN = Type(JsonField.of("ca_bn")) + @JvmField val CA_BN = of("ca_bn") - @JvmField val CA_GST_HST = Type(JsonField.of("ca_gst_hst")) + @JvmField val CA_GST_HST = of("ca_gst_hst") - @JvmField val CA_PST_BC = Type(JsonField.of("ca_pst_bc")) + @JvmField val CA_PST_BC = of("ca_pst_bc") - @JvmField val CA_PST_MB = Type(JsonField.of("ca_pst_mb")) + @JvmField val CA_PST_MB = of("ca_pst_mb") - @JvmField val CA_PST_SK = Type(JsonField.of("ca_pst_sk")) + @JvmField val CA_PST_SK = of("ca_pst_sk") - @JvmField val CA_QST = Type(JsonField.of("ca_qst")) + @JvmField val CA_QST = of("ca_qst") - @JvmField val CH_VAT = Type(JsonField.of("ch_vat")) + @JvmField val CH_VAT = of("ch_vat") - @JvmField val CL_TIN = Type(JsonField.of("cl_tin")) + @JvmField val CL_TIN = of("cl_tin") - @JvmField val CN_TIN = Type(JsonField.of("cn_tin")) + @JvmField val CN_TIN = of("cn_tin") - @JvmField val CO_NIT = Type(JsonField.of("co_nit")) + @JvmField val CO_NIT = of("co_nit") - @JvmField val CR_TIN = Type(JsonField.of("cr_tin")) + @JvmField val CR_TIN = of("cr_tin") - @JvmField val DO_RCN = Type(JsonField.of("do_rcn")) + @JvmField val DO_RCN = of("do_rcn") - @JvmField val EC_RUC = Type(JsonField.of("ec_ruc")) + @JvmField val EC_RUC = of("ec_ruc") - @JvmField val EG_TIN = Type(JsonField.of("eg_tin")) + @JvmField val EG_TIN = of("eg_tin") - @JvmField val ES_CIF = Type(JsonField.of("es_cif")) + @JvmField val ES_CIF = of("es_cif") - @JvmField val EU_OSS_VAT = Type(JsonField.of("eu_oss_vat")) + @JvmField val EU_OSS_VAT = of("eu_oss_vat") - @JvmField val GB_VAT = Type(JsonField.of("gb_vat")) + @JvmField val GB_VAT = of("gb_vat") - @JvmField val GE_VAT = Type(JsonField.of("ge_vat")) + @JvmField val GE_VAT = of("ge_vat") - @JvmField val HK_BR = Type(JsonField.of("hk_br")) + @JvmField val HK_BR = of("hk_br") - @JvmField val HU_TIN = Type(JsonField.of("hu_tin")) + @JvmField val HU_TIN = of("hu_tin") - @JvmField val ID_NPWP = Type(JsonField.of("id_npwp")) + @JvmField val ID_NPWP = of("id_npwp") - @JvmField val IL_VAT = Type(JsonField.of("il_vat")) + @JvmField val IL_VAT = of("il_vat") - @JvmField val IN_GST = Type(JsonField.of("in_gst")) + @JvmField val IN_GST = of("in_gst") - @JvmField val IS_VAT = Type(JsonField.of("is_vat")) + @JvmField val IS_VAT = of("is_vat") - @JvmField val JP_CN = Type(JsonField.of("jp_cn")) + @JvmField val JP_CN = of("jp_cn") - @JvmField val JP_RN = Type(JsonField.of("jp_rn")) + @JvmField val JP_RN = of("jp_rn") - @JvmField val JP_TRN = Type(JsonField.of("jp_trn")) + @JvmField val JP_TRN = of("jp_trn") - @JvmField val KE_PIN = Type(JsonField.of("ke_pin")) + @JvmField val KE_PIN = of("ke_pin") - @JvmField val KR_BRN = Type(JsonField.of("kr_brn")) + @JvmField val KR_BRN = of("kr_brn") - @JvmField val KZ_BIN = Type(JsonField.of("kz_bin")) + @JvmField val KZ_BIN = of("kz_bin") - @JvmField val LI_UID = Type(JsonField.of("li_uid")) + @JvmField val LI_UID = of("li_uid") - @JvmField val MX_RFC = Type(JsonField.of("mx_rfc")) + @JvmField val MX_RFC = of("mx_rfc") - @JvmField val MY_FRP = Type(JsonField.of("my_frp")) + @JvmField val MY_FRP = of("my_frp") - @JvmField val MY_ITN = Type(JsonField.of("my_itn")) + @JvmField val MY_ITN = of("my_itn") - @JvmField val MY_SST = Type(JsonField.of("my_sst")) + @JvmField val MY_SST = of("my_sst") - @JvmField val NG_TIN = Type(JsonField.of("ng_tin")) + @JvmField val NG_TIN = of("ng_tin") - @JvmField val NO_VAT = Type(JsonField.of("no_vat")) + @JvmField val NO_VAT = of("no_vat") - @JvmField val NO_VOEC = Type(JsonField.of("no_voec")) + @JvmField val NO_VOEC = of("no_voec") - @JvmField val NZ_GST = Type(JsonField.of("nz_gst")) + @JvmField val NZ_GST = of("nz_gst") - @JvmField val OM_VAT = Type(JsonField.of("om_vat")) + @JvmField val OM_VAT = of("om_vat") - @JvmField val PE_RUC = Type(JsonField.of("pe_ruc")) + @JvmField val PE_RUC = of("pe_ruc") - @JvmField val PH_TIN = Type(JsonField.of("ph_tin")) + @JvmField val PH_TIN = of("ph_tin") - @JvmField val RO_TIN = Type(JsonField.of("ro_tin")) + @JvmField val RO_TIN = of("ro_tin") - @JvmField val RS_PIB = Type(JsonField.of("rs_pib")) + @JvmField val RS_PIB = of("rs_pib") - @JvmField val RU_INN = Type(JsonField.of("ru_inn")) + @JvmField val RU_INN = of("ru_inn") - @JvmField val RU_KPP = Type(JsonField.of("ru_kpp")) + @JvmField val RU_KPP = of("ru_kpp") - @JvmField val SA_VAT = Type(JsonField.of("sa_vat")) + @JvmField val SA_VAT = of("sa_vat") - @JvmField val SG_GST = Type(JsonField.of("sg_gst")) + @JvmField val SG_GST = of("sg_gst") - @JvmField val SG_UEN = Type(JsonField.of("sg_uen")) + @JvmField val SG_UEN = of("sg_uen") - @JvmField val SI_TIN = Type(JsonField.of("si_tin")) + @JvmField val SI_TIN = of("si_tin") - @JvmField val SV_NIT = Type(JsonField.of("sv_nit")) + @JvmField val SV_NIT = of("sv_nit") - @JvmField val TH_VAT = Type(JsonField.of("th_vat")) + @JvmField val TH_VAT = of("th_vat") - @JvmField val TR_TIN = Type(JsonField.of("tr_tin")) + @JvmField val TR_TIN = of("tr_tin") - @JvmField val TW_VAT = Type(JsonField.of("tw_vat")) + @JvmField val TW_VAT = of("tw_vat") - @JvmField val UA_VAT = Type(JsonField.of("ua_vat")) + @JvmField val UA_VAT = of("ua_vat") - @JvmField val US_EIN = Type(JsonField.of("us_ein")) + @JvmField val US_EIN = of("us_ein") - @JvmField val UY_RUC = Type(JsonField.of("uy_ruc")) + @JvmField val UY_RUC = of("uy_ruc") - @JvmField val VE_RIF = Type(JsonField.of("ve_rif")) + @JvmField val VE_RIF = of("ve_rif") - @JvmField val VN_TIN = Type(JsonField.of("vn_tin")) + @JvmField val VN_TIN = of("vn_tin") - @JvmField val ZA_VAT = Type(JsonField.of("za_vat")) + @JvmField val ZA_VAT = of("za_vat") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -3320,6 +3307,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/Discount.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/Discount.kt index fb8bf8b2..c6d992b7 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/Discount.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/Discount.kt @@ -369,21 +369,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -410,6 +398,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCloseParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCloseParams.kt index 5fff1598..80778002 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCloseParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCloseParams.kt @@ -7,7 +7,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCloseResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCloseResponse.kt index 074cc288..8c2ad7e9 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCloseResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCloseResponse.kt @@ -311,27 +311,15 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PENDING = Status(JsonField.of("pending")) + @JvmField val PENDING = of("pending") - @JvmField val REFLECTED = Status(JsonField.of("reflected")) + @JvmField val REFLECTED = of("reflected") - @JvmField val PENDING_REVERT = Status(JsonField.of("pending_revert")) + @JvmField val PENDING_REVERT = of("pending_revert") - @JvmField val REVERTED = Status(JsonField.of("reverted")) + @JvmField val REVERTED = of("reverted") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -370,6 +358,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCreateParams.kt index 462a1c20..13d85bd2 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCreateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCreateParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.time.OffsetDateTime import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCreateResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCreateResponse.kt index 2e9b0367..1e7f7a63 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCreateResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCreateResponse.kt @@ -311,27 +311,15 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PENDING = Status(JsonField.of("pending")) + @JvmField val PENDING = of("pending") - @JvmField val REFLECTED = Status(JsonField.of("reflected")) + @JvmField val REFLECTED = of("reflected") - @JvmField val PENDING_REVERT = Status(JsonField.of("pending_revert")) + @JvmField val PENDING_REVERT = of("pending_revert") - @JvmField val REVERTED = Status(JsonField.of("reverted")) + @JvmField val REVERTED = of("reverted") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -370,6 +358,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillFetchParams.kt index d4f90406..fc90e84e 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillFetchParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillFetchParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class EventBackfillFetchParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillFetchResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillFetchResponse.kt index 586714c8..c95d7940 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillFetchResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillFetchResponse.kt @@ -311,27 +311,15 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PENDING = Status(JsonField.of("pending")) + @JvmField val PENDING = of("pending") - @JvmField val REFLECTED = Status(JsonField.of("reflected")) + @JvmField val REFLECTED = of("reflected") - @JvmField val PENDING_REVERT = Status(JsonField.of("pending_revert")) + @JvmField val PENDING_REVERT = of("pending_revert") - @JvmField val REVERTED = Status(JsonField.of("reverted")) + @JvmField val REVERTED = of("reverted") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -370,6 +358,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListParams.kt index 11055875..1919fec7 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListResponse.kt index 2ab18cfd..36e37146 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListResponse.kt @@ -311,27 +311,15 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PENDING = Status(JsonField.of("pending")) + @JvmField val PENDING = of("pending") - @JvmField val REFLECTED = Status(JsonField.of("reflected")) + @JvmField val REFLECTED = of("reflected") - @JvmField val PENDING_REVERT = Status(JsonField.of("pending_revert")) + @JvmField val PENDING_REVERT = of("pending_revert") - @JvmField val REVERTED = Status(JsonField.of("reverted")) + @JvmField val REVERTED = of("reverted") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -370,6 +358,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillRevertParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillRevertParams.kt index b872c36c..6f13e254 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillRevertParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillRevertParams.kt @@ -7,7 +7,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillRevertResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillRevertResponse.kt index 7d20f2e6..5f3fc3b4 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillRevertResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillRevertResponse.kt @@ -311,27 +311,15 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PENDING = Status(JsonField.of("pending")) + @JvmField val PENDING = of("pending") - @JvmField val REFLECTED = Status(JsonField.of("reflected")) + @JvmField val REFLECTED = of("reflected") - @JvmField val PENDING_REVERT = Status(JsonField.of("pending_revert")) + @JvmField val PENDING_REVERT = of("pending_revert") - @JvmField val REVERTED = Status(JsonField.of("reverted")) + @JvmField val REVERTED = of("reverted") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -370,6 +358,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventDeprecateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventDeprecateParams.kt index fbde39fb..41f08196 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventDeprecateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventDeprecateParams.kt @@ -7,7 +7,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventIngestParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventIngestParams.kt index 69015b83..afe7b9c5 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventIngestParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventIngestParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.time.OffsetDateTime import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventSearchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventSearchParams.kt index 0f403e40..9ac899fa 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventSearchParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventSearchParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.time.OffsetDateTime import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventUpdateParams.kt index 1e7127c9..01950c33 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventUpdateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventUpdateParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.time.OffsetDateTime import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventVolumeListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventVolumeListParams.kt index 9d677455..afb0cf71 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventVolumeListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventVolumeListParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import java.time.format.DateTimeFormatter import java.util.Objects diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/Invoice.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/Invoice.kt index c3e08392..31631f65 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/Invoice.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/Invoice.kt @@ -2432,36 +2432,23 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Action && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val APPLIED_TO_INVOICE = Action(JsonField.of("applied_to_invoice")) + @JvmField val APPLIED_TO_INVOICE = of("applied_to_invoice") - @JvmField val MANUAL_ADJUSTMENT = Action(JsonField.of("manual_adjustment")) + @JvmField val MANUAL_ADJUSTMENT = of("manual_adjustment") - @JvmField val PRORATED_REFUND = Action(JsonField.of("prorated_refund")) + @JvmField val PRORATED_REFUND = of("prorated_refund") - @JvmField - val REVERT_PRORATED_REFUND = Action(JsonField.of("revert_prorated_refund")) + @JvmField val REVERT_PRORATED_REFUND = of("revert_prorated_refund") - @JvmField val RETURN_FROM_VOIDING = Action(JsonField.of("return_from_voiding")) + @JvmField val RETURN_FROM_VOIDING = of("return_from_voiding") - @JvmField val CREDIT_NOTE_APPLIED = Action(JsonField.of("credit_note_applied")) + @JvmField val CREDIT_NOTE_APPLIED = of("credit_note_applied") - @JvmField val CREDIT_NOTE_VOIDED = Action(JsonField.of("credit_note_voided")) + @JvmField val CREDIT_NOTE_VOIDED = of("credit_note_voided") - @JvmField val OVERPAYMENT_REFUND = Action(JsonField.of("overpayment_refund")) + @JvmField val OVERPAYMENT_REFUND = of("overpayment_refund") @JvmStatic fun of(value: String) = Action(JsonField.of(value)) } @@ -2516,6 +2503,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Action && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditNote.Builder::class) @@ -2703,23 +2702,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val INCREMENT = Type(JsonField.of("increment")) + @JvmField val INCREMENT = of("increment") - @JvmField val DECREMENT = Type(JsonField.of("decrement")) + @JvmField val DECREMENT = of("decrement") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -2750,6 +2737,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2984,175 +2983,163 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Country && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AD = Country(JsonField.of("AD")) + @JvmField val AD = of("AD") - @JvmField val AE = Country(JsonField.of("AE")) + @JvmField val AE = of("AE") - @JvmField val AR = Country(JsonField.of("AR")) + @JvmField val AR = of("AR") - @JvmField val AT = Country(JsonField.of("AT")) + @JvmField val AT = of("AT") - @JvmField val AU = Country(JsonField.of("AU")) + @JvmField val AU = of("AU") - @JvmField val BE = Country(JsonField.of("BE")) + @JvmField val BE = of("BE") - @JvmField val BG = Country(JsonField.of("BG")) + @JvmField val BG = of("BG") - @JvmField val BH = Country(JsonField.of("BH")) + @JvmField val BH = of("BH") - @JvmField val BO = Country(JsonField.of("BO")) + @JvmField val BO = of("BO") - @JvmField val BR = Country(JsonField.of("BR")) + @JvmField val BR = of("BR") - @JvmField val CA = Country(JsonField.of("CA")) + @JvmField val CA = of("CA") - @JvmField val CH = Country(JsonField.of("CH")) + @JvmField val CH = of("CH") - @JvmField val CL = Country(JsonField.of("CL")) + @JvmField val CL = of("CL") - @JvmField val CN = Country(JsonField.of("CN")) + @JvmField val CN = of("CN") - @JvmField val CO = Country(JsonField.of("CO")) + @JvmField val CO = of("CO") - @JvmField val CR = Country(JsonField.of("CR")) + @JvmField val CR = of("CR") - @JvmField val CY = Country(JsonField.of("CY")) + @JvmField val CY = of("CY") - @JvmField val CZ = Country(JsonField.of("CZ")) + @JvmField val CZ = of("CZ") - @JvmField val DE = Country(JsonField.of("DE")) + @JvmField val DE = of("DE") - @JvmField val DK = Country(JsonField.of("DK")) + @JvmField val DK = of("DK") - @JvmField val EE = Country(JsonField.of("EE")) + @JvmField val EE = of("EE") - @JvmField val DO = Country(JsonField.of("DO")) + @JvmField val DO = of("DO") - @JvmField val EC = Country(JsonField.of("EC")) + @JvmField val EC = of("EC") - @JvmField val EG = Country(JsonField.of("EG")) + @JvmField val EG = of("EG") - @JvmField val ES = Country(JsonField.of("ES")) + @JvmField val ES = of("ES") - @JvmField val EU = Country(JsonField.of("EU")) + @JvmField val EU = of("EU") - @JvmField val FI = Country(JsonField.of("FI")) + @JvmField val FI = of("FI") - @JvmField val FR = Country(JsonField.of("FR")) + @JvmField val FR = of("FR") - @JvmField val GB = Country(JsonField.of("GB")) + @JvmField val GB = of("GB") - @JvmField val GE = Country(JsonField.of("GE")) + @JvmField val GE = of("GE") - @JvmField val GR = Country(JsonField.of("GR")) + @JvmField val GR = of("GR") - @JvmField val HK = Country(JsonField.of("HK")) + @JvmField val HK = of("HK") - @JvmField val HR = Country(JsonField.of("HR")) + @JvmField val HR = of("HR") - @JvmField val HU = Country(JsonField.of("HU")) + @JvmField val HU = of("HU") - @JvmField val ID = Country(JsonField.of("ID")) + @JvmField val ID = of("ID") - @JvmField val IE = Country(JsonField.of("IE")) + @JvmField val IE = of("IE") - @JvmField val IL = Country(JsonField.of("IL")) + @JvmField val IL = of("IL") - @JvmField val IN = Country(JsonField.of("IN")) + @JvmField val IN = of("IN") - @JvmField val IS = Country(JsonField.of("IS")) + @JvmField val IS = of("IS") - @JvmField val IT = Country(JsonField.of("IT")) + @JvmField val IT = of("IT") - @JvmField val JP = Country(JsonField.of("JP")) + @JvmField val JP = of("JP") - @JvmField val KE = Country(JsonField.of("KE")) + @JvmField val KE = of("KE") - @JvmField val KR = Country(JsonField.of("KR")) + @JvmField val KR = of("KR") - @JvmField val KZ = Country(JsonField.of("KZ")) + @JvmField val KZ = of("KZ") - @JvmField val LI = Country(JsonField.of("LI")) + @JvmField val LI = of("LI") - @JvmField val LT = Country(JsonField.of("LT")) + @JvmField val LT = of("LT") - @JvmField val LU = Country(JsonField.of("LU")) + @JvmField val LU = of("LU") - @JvmField val LV = Country(JsonField.of("LV")) + @JvmField val LV = of("LV") - @JvmField val MT = Country(JsonField.of("MT")) + @JvmField val MT = of("MT") - @JvmField val MX = Country(JsonField.of("MX")) + @JvmField val MX = of("MX") - @JvmField val MY = Country(JsonField.of("MY")) + @JvmField val MY = of("MY") - @JvmField val NG = Country(JsonField.of("NG")) + @JvmField val NG = of("NG") - @JvmField val NL = Country(JsonField.of("NL")) + @JvmField val NL = of("NL") - @JvmField val NO = Country(JsonField.of("NO")) + @JvmField val NO = of("NO") - @JvmField val NZ = Country(JsonField.of("NZ")) + @JvmField val NZ = of("NZ") - @JvmField val OM = Country(JsonField.of("OM")) + @JvmField val OM = of("OM") - @JvmField val PE = Country(JsonField.of("PE")) + @JvmField val PE = of("PE") - @JvmField val PH = Country(JsonField.of("PH")) + @JvmField val PH = of("PH") - @JvmField val PL = Country(JsonField.of("PL")) + @JvmField val PL = of("PL") - @JvmField val PT = Country(JsonField.of("PT")) + @JvmField val PT = of("PT") - @JvmField val RO = Country(JsonField.of("RO")) + @JvmField val RO = of("RO") - @JvmField val RS = Country(JsonField.of("RS")) + @JvmField val RS = of("RS") - @JvmField val RU = Country(JsonField.of("RU")) + @JvmField val RU = of("RU") - @JvmField val SA = Country(JsonField.of("SA")) + @JvmField val SA = of("SA") - @JvmField val SE = Country(JsonField.of("SE")) + @JvmField val SE = of("SE") - @JvmField val SG = Country(JsonField.of("SG")) + @JvmField val SG = of("SG") - @JvmField val SI = Country(JsonField.of("SI")) + @JvmField val SI = of("SI") - @JvmField val SK = Country(JsonField.of("SK")) + @JvmField val SK = of("SK") - @JvmField val SV = Country(JsonField.of("SV")) + @JvmField val SV = of("SV") - @JvmField val TH = Country(JsonField.of("TH")) + @JvmField val TH = of("TH") - @JvmField val TR = Country(JsonField.of("TR")) + @JvmField val TR = of("TR") - @JvmField val TW = Country(JsonField.of("TW")) + @JvmField val TW = of("TW") - @JvmField val UA = Country(JsonField.of("UA")) + @JvmField val UA = of("UA") - @JvmField val US = Country(JsonField.of("US")) + @JvmField val US = of("US") - @JvmField val UY = Country(JsonField.of("UY")) + @JvmField val UY = of("UY") - @JvmField val VE = Country(JsonField.of("VE")) + @JvmField val VE = of("VE") - @JvmField val VN = Country(JsonField.of("VN")) + @JvmField val VN = of("VN") - @JvmField val ZA = Country(JsonField.of("ZA")) + @JvmField val ZA = of("ZA") @JvmStatic fun of(value: String) = Country(JsonField.of(value)) } @@ -3487,171 +3474,171 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is Country && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val AD_NRT = Type(JsonField.of("ad_nrt")) + @JvmField val AD_NRT = of("ad_nrt") - @JvmField val AE_TRN = Type(JsonField.of("ae_trn")) + @JvmField val AE_TRN = of("ae_trn") - @JvmField val AR_CUIT = Type(JsonField.of("ar_cuit")) + @JvmField val AR_CUIT = of("ar_cuit") - @JvmField val EU_VAT = Type(JsonField.of("eu_vat")) + @JvmField val EU_VAT = of("eu_vat") - @JvmField val AU_ABN = Type(JsonField.of("au_abn")) + @JvmField val AU_ABN = of("au_abn") - @JvmField val AU_ARN = Type(JsonField.of("au_arn")) + @JvmField val AU_ARN = of("au_arn") - @JvmField val BG_UIC = Type(JsonField.of("bg_uic")) + @JvmField val BG_UIC = of("bg_uic") - @JvmField val BH_VAT = Type(JsonField.of("bh_vat")) + @JvmField val BH_VAT = of("bh_vat") - @JvmField val BO_TIN = Type(JsonField.of("bo_tin")) + @JvmField val BO_TIN = of("bo_tin") - @JvmField val BR_CNPJ = Type(JsonField.of("br_cnpj")) + @JvmField val BR_CNPJ = of("br_cnpj") - @JvmField val BR_CPF = Type(JsonField.of("br_cpf")) + @JvmField val BR_CPF = of("br_cpf") - @JvmField val CA_BN = Type(JsonField.of("ca_bn")) + @JvmField val CA_BN = of("ca_bn") - @JvmField val CA_GST_HST = Type(JsonField.of("ca_gst_hst")) + @JvmField val CA_GST_HST = of("ca_gst_hst") - @JvmField val CA_PST_BC = Type(JsonField.of("ca_pst_bc")) + @JvmField val CA_PST_BC = of("ca_pst_bc") - @JvmField val CA_PST_MB = Type(JsonField.of("ca_pst_mb")) + @JvmField val CA_PST_MB = of("ca_pst_mb") - @JvmField val CA_PST_SK = Type(JsonField.of("ca_pst_sk")) + @JvmField val CA_PST_SK = of("ca_pst_sk") - @JvmField val CA_QST = Type(JsonField.of("ca_qst")) + @JvmField val CA_QST = of("ca_qst") - @JvmField val CH_VAT = Type(JsonField.of("ch_vat")) + @JvmField val CH_VAT = of("ch_vat") - @JvmField val CL_TIN = Type(JsonField.of("cl_tin")) + @JvmField val CL_TIN = of("cl_tin") - @JvmField val CN_TIN = Type(JsonField.of("cn_tin")) + @JvmField val CN_TIN = of("cn_tin") - @JvmField val CO_NIT = Type(JsonField.of("co_nit")) + @JvmField val CO_NIT = of("co_nit") - @JvmField val CR_TIN = Type(JsonField.of("cr_tin")) + @JvmField val CR_TIN = of("cr_tin") - @JvmField val DO_RCN = Type(JsonField.of("do_rcn")) + @JvmField val DO_RCN = of("do_rcn") - @JvmField val EC_RUC = Type(JsonField.of("ec_ruc")) + @JvmField val EC_RUC = of("ec_ruc") - @JvmField val EG_TIN = Type(JsonField.of("eg_tin")) + @JvmField val EG_TIN = of("eg_tin") - @JvmField val ES_CIF = Type(JsonField.of("es_cif")) + @JvmField val ES_CIF = of("es_cif") - @JvmField val EU_OSS_VAT = Type(JsonField.of("eu_oss_vat")) + @JvmField val EU_OSS_VAT = of("eu_oss_vat") - @JvmField val GB_VAT = Type(JsonField.of("gb_vat")) + @JvmField val GB_VAT = of("gb_vat") - @JvmField val GE_VAT = Type(JsonField.of("ge_vat")) + @JvmField val GE_VAT = of("ge_vat") - @JvmField val HK_BR = Type(JsonField.of("hk_br")) + @JvmField val HK_BR = of("hk_br") - @JvmField val HU_TIN = Type(JsonField.of("hu_tin")) + @JvmField val HU_TIN = of("hu_tin") - @JvmField val ID_NPWP = Type(JsonField.of("id_npwp")) + @JvmField val ID_NPWP = of("id_npwp") - @JvmField val IL_VAT = Type(JsonField.of("il_vat")) + @JvmField val IL_VAT = of("il_vat") - @JvmField val IN_GST = Type(JsonField.of("in_gst")) + @JvmField val IN_GST = of("in_gst") - @JvmField val IS_VAT = Type(JsonField.of("is_vat")) + @JvmField val IS_VAT = of("is_vat") - @JvmField val JP_CN = Type(JsonField.of("jp_cn")) + @JvmField val JP_CN = of("jp_cn") - @JvmField val JP_RN = Type(JsonField.of("jp_rn")) + @JvmField val JP_RN = of("jp_rn") - @JvmField val JP_TRN = Type(JsonField.of("jp_trn")) + @JvmField val JP_TRN = of("jp_trn") - @JvmField val KE_PIN = Type(JsonField.of("ke_pin")) + @JvmField val KE_PIN = of("ke_pin") - @JvmField val KR_BRN = Type(JsonField.of("kr_brn")) + @JvmField val KR_BRN = of("kr_brn") - @JvmField val KZ_BIN = Type(JsonField.of("kz_bin")) + @JvmField val KZ_BIN = of("kz_bin") - @JvmField val LI_UID = Type(JsonField.of("li_uid")) + @JvmField val LI_UID = of("li_uid") - @JvmField val MX_RFC = Type(JsonField.of("mx_rfc")) + @JvmField val MX_RFC = of("mx_rfc") - @JvmField val MY_FRP = Type(JsonField.of("my_frp")) + @JvmField val MY_FRP = of("my_frp") - @JvmField val MY_ITN = Type(JsonField.of("my_itn")) + @JvmField val MY_ITN = of("my_itn") - @JvmField val MY_SST = Type(JsonField.of("my_sst")) + @JvmField val MY_SST = of("my_sst") - @JvmField val NG_TIN = Type(JsonField.of("ng_tin")) + @JvmField val NG_TIN = of("ng_tin") - @JvmField val NO_VAT = Type(JsonField.of("no_vat")) + @JvmField val NO_VAT = of("no_vat") - @JvmField val NO_VOEC = Type(JsonField.of("no_voec")) + @JvmField val NO_VOEC = of("no_voec") - @JvmField val NZ_GST = Type(JsonField.of("nz_gst")) + @JvmField val NZ_GST = of("nz_gst") - @JvmField val OM_VAT = Type(JsonField.of("om_vat")) + @JvmField val OM_VAT = of("om_vat") - @JvmField val PE_RUC = Type(JsonField.of("pe_ruc")) + @JvmField val PE_RUC = of("pe_ruc") - @JvmField val PH_TIN = Type(JsonField.of("ph_tin")) + @JvmField val PH_TIN = of("ph_tin") - @JvmField val RO_TIN = Type(JsonField.of("ro_tin")) + @JvmField val RO_TIN = of("ro_tin") - @JvmField val RS_PIB = Type(JsonField.of("rs_pib")) + @JvmField val RS_PIB = of("rs_pib") - @JvmField val RU_INN = Type(JsonField.of("ru_inn")) + @JvmField val RU_INN = of("ru_inn") - @JvmField val RU_KPP = Type(JsonField.of("ru_kpp")) + @JvmField val RU_KPP = of("ru_kpp") - @JvmField val SA_VAT = Type(JsonField.of("sa_vat")) + @JvmField val SA_VAT = of("sa_vat") - @JvmField val SG_GST = Type(JsonField.of("sg_gst")) + @JvmField val SG_GST = of("sg_gst") - @JvmField val SG_UEN = Type(JsonField.of("sg_uen")) + @JvmField val SG_UEN = of("sg_uen") - @JvmField val SI_TIN = Type(JsonField.of("si_tin")) + @JvmField val SI_TIN = of("si_tin") - @JvmField val SV_NIT = Type(JsonField.of("sv_nit")) + @JvmField val SV_NIT = of("sv_nit") - @JvmField val TH_VAT = Type(JsonField.of("th_vat")) + @JvmField val TH_VAT = of("th_vat") - @JvmField val TR_TIN = Type(JsonField.of("tr_tin")) + @JvmField val TR_TIN = of("tr_tin") - @JvmField val TW_VAT = Type(JsonField.of("tw_vat")) + @JvmField val TW_VAT = of("tw_vat") - @JvmField val UA_VAT = Type(JsonField.of("ua_vat")) + @JvmField val UA_VAT = of("ua_vat") - @JvmField val US_EIN = Type(JsonField.of("us_ein")) + @JvmField val US_EIN = of("us_ein") - @JvmField val UY_RUC = Type(JsonField.of("uy_ruc")) + @JvmField val UY_RUC = of("uy_ruc") - @JvmField val VE_RIF = Type(JsonField.of("ve_rif")) + @JvmField val VE_RIF = of("ve_rif") - @JvmField val VN_TIN = Type(JsonField.of("vn_tin")) + @JvmField val VN_TIN = of("vn_tin") - @JvmField val ZA_VAT = Type(JsonField.of("za_vat")) + @JvmField val ZA_VAT = of("za_vat") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -3958,6 +3945,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3986,25 +3985,13 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is InvoiceSource && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val SUBSCRIPTION = InvoiceSource(JsonField.of("subscription")) + @JvmField val SUBSCRIPTION = of("subscription") - @JvmField val PARTIAL = InvoiceSource(JsonField.of("partial")) + @JvmField val PARTIAL = of("partial") - @JvmField val ONE_OFF = InvoiceSource(JsonField.of("one_off")) + @JvmField val ONE_OFF = of("one_off") @JvmStatic fun of(value: String) = InvoiceSource(JsonField.of(value)) } @@ -4039,6 +4026,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is InvoiceSource && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = LineItem.Builder::class) @@ -6140,21 +6139,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MATRIX = Type(JsonField.of("matrix")) + @JvmField val MATRIX = of("matrix") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -6181,6 +6168,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6599,21 +6598,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val TIER = Type(JsonField.of("tier")) + @JvmField val TIER = of("tier") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -6640,6 +6627,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6914,21 +6913,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val NULL = Type(JsonField.of("'null'")) + @JvmField val NULL = of("'null'") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -6955,6 +6942,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -7662,21 +7661,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is PaymentProvider && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val STRIPE = PaymentProvider(JsonField.of("stripe")) + @JvmField val STRIPE = of("stripe") @JvmStatic fun of(value: String) = PaymentProvider(JsonField.of(value)) } @@ -7703,6 +7690,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PaymentProvider && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -7895,29 +7894,17 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ISSUED = Status(JsonField.of("issued")) + @JvmField val ISSUED = of("issued") - @JvmField val PAID = Status(JsonField.of("paid")) + @JvmField val PAID = of("paid") - @JvmField val SYNCED = Status(JsonField.of("synced")) + @JvmField val SYNCED = of("synced") - @JvmField val VOID = Status(JsonField.of("void")) + @JvmField val VOID = of("void") - @JvmField val DRAFT = Status(JsonField.of("draft")) + @JvmField val DRAFT = of("draft") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -7960,6 +7947,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = Subscription.Builder::class) diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceCreateParams.kt index 290c87a1..2825cf4a 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceCreateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceCreateParams.kt @@ -16,7 +16,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.LocalDate import java.time.OffsetDateTime import java.util.Objects @@ -688,21 +687,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val UNIT = ModelType(JsonField.of("unit")) + @JvmField val UNIT = of("unit") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -729,6 +716,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitConfig.Builder::class) diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchParams.kt index 2eacd36f..66fbc147 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class InvoiceFetchParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingParams.kt index 81d06c28..cdcc5670 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class InvoiceFetchUpcomingParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponse.kt index 1c32d0db..5651037b 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponse.kt @@ -2426,36 +2426,23 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Action && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val APPLIED_TO_INVOICE = Action(JsonField.of("applied_to_invoice")) + @JvmField val APPLIED_TO_INVOICE = of("applied_to_invoice") - @JvmField val MANUAL_ADJUSTMENT = Action(JsonField.of("manual_adjustment")) + @JvmField val MANUAL_ADJUSTMENT = of("manual_adjustment") - @JvmField val PRORATED_REFUND = Action(JsonField.of("prorated_refund")) + @JvmField val PRORATED_REFUND = of("prorated_refund") - @JvmField - val REVERT_PRORATED_REFUND = Action(JsonField.of("revert_prorated_refund")) + @JvmField val REVERT_PRORATED_REFUND = of("revert_prorated_refund") - @JvmField val RETURN_FROM_VOIDING = Action(JsonField.of("return_from_voiding")) + @JvmField val RETURN_FROM_VOIDING = of("return_from_voiding") - @JvmField val CREDIT_NOTE_APPLIED = Action(JsonField.of("credit_note_applied")) + @JvmField val CREDIT_NOTE_APPLIED = of("credit_note_applied") - @JvmField val CREDIT_NOTE_VOIDED = Action(JsonField.of("credit_note_voided")) + @JvmField val CREDIT_NOTE_VOIDED = of("credit_note_voided") - @JvmField val OVERPAYMENT_REFUND = Action(JsonField.of("overpayment_refund")) + @JvmField val OVERPAYMENT_REFUND = of("overpayment_refund") @JvmStatic fun of(value: String) = Action(JsonField.of(value)) } @@ -2510,6 +2497,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Action && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditNote.Builder::class) @@ -2697,23 +2696,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val INCREMENT = Type(JsonField.of("increment")) + @JvmField val INCREMENT = of("increment") - @JvmField val DECREMENT = Type(JsonField.of("decrement")) + @JvmField val DECREMENT = of("decrement") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -2744,6 +2731,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2978,175 +2977,163 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Country && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AD = Country(JsonField.of("AD")) + @JvmField val AD = of("AD") - @JvmField val AE = Country(JsonField.of("AE")) + @JvmField val AE = of("AE") - @JvmField val AR = Country(JsonField.of("AR")) + @JvmField val AR = of("AR") - @JvmField val AT = Country(JsonField.of("AT")) + @JvmField val AT = of("AT") - @JvmField val AU = Country(JsonField.of("AU")) + @JvmField val AU = of("AU") - @JvmField val BE = Country(JsonField.of("BE")) + @JvmField val BE = of("BE") - @JvmField val BG = Country(JsonField.of("BG")) + @JvmField val BG = of("BG") - @JvmField val BH = Country(JsonField.of("BH")) + @JvmField val BH = of("BH") - @JvmField val BO = Country(JsonField.of("BO")) + @JvmField val BO = of("BO") - @JvmField val BR = Country(JsonField.of("BR")) + @JvmField val BR = of("BR") - @JvmField val CA = Country(JsonField.of("CA")) + @JvmField val CA = of("CA") - @JvmField val CH = Country(JsonField.of("CH")) + @JvmField val CH = of("CH") - @JvmField val CL = Country(JsonField.of("CL")) + @JvmField val CL = of("CL") - @JvmField val CN = Country(JsonField.of("CN")) + @JvmField val CN = of("CN") - @JvmField val CO = Country(JsonField.of("CO")) + @JvmField val CO = of("CO") - @JvmField val CR = Country(JsonField.of("CR")) + @JvmField val CR = of("CR") - @JvmField val CY = Country(JsonField.of("CY")) + @JvmField val CY = of("CY") - @JvmField val CZ = Country(JsonField.of("CZ")) + @JvmField val CZ = of("CZ") - @JvmField val DE = Country(JsonField.of("DE")) + @JvmField val DE = of("DE") - @JvmField val DK = Country(JsonField.of("DK")) + @JvmField val DK = of("DK") - @JvmField val EE = Country(JsonField.of("EE")) + @JvmField val EE = of("EE") - @JvmField val DO = Country(JsonField.of("DO")) + @JvmField val DO = of("DO") - @JvmField val EC = Country(JsonField.of("EC")) + @JvmField val EC = of("EC") - @JvmField val EG = Country(JsonField.of("EG")) + @JvmField val EG = of("EG") - @JvmField val ES = Country(JsonField.of("ES")) + @JvmField val ES = of("ES") - @JvmField val EU = Country(JsonField.of("EU")) + @JvmField val EU = of("EU") - @JvmField val FI = Country(JsonField.of("FI")) + @JvmField val FI = of("FI") - @JvmField val FR = Country(JsonField.of("FR")) + @JvmField val FR = of("FR") - @JvmField val GB = Country(JsonField.of("GB")) + @JvmField val GB = of("GB") - @JvmField val GE = Country(JsonField.of("GE")) + @JvmField val GE = of("GE") - @JvmField val GR = Country(JsonField.of("GR")) + @JvmField val GR = of("GR") - @JvmField val HK = Country(JsonField.of("HK")) + @JvmField val HK = of("HK") - @JvmField val HR = Country(JsonField.of("HR")) + @JvmField val HR = of("HR") - @JvmField val HU = Country(JsonField.of("HU")) + @JvmField val HU = of("HU") - @JvmField val ID = Country(JsonField.of("ID")) + @JvmField val ID = of("ID") - @JvmField val IE = Country(JsonField.of("IE")) + @JvmField val IE = of("IE") - @JvmField val IL = Country(JsonField.of("IL")) + @JvmField val IL = of("IL") - @JvmField val IN = Country(JsonField.of("IN")) + @JvmField val IN = of("IN") - @JvmField val IS = Country(JsonField.of("IS")) + @JvmField val IS = of("IS") - @JvmField val IT = Country(JsonField.of("IT")) + @JvmField val IT = of("IT") - @JvmField val JP = Country(JsonField.of("JP")) + @JvmField val JP = of("JP") - @JvmField val KE = Country(JsonField.of("KE")) + @JvmField val KE = of("KE") - @JvmField val KR = Country(JsonField.of("KR")) + @JvmField val KR = of("KR") - @JvmField val KZ = Country(JsonField.of("KZ")) + @JvmField val KZ = of("KZ") - @JvmField val LI = Country(JsonField.of("LI")) + @JvmField val LI = of("LI") - @JvmField val LT = Country(JsonField.of("LT")) + @JvmField val LT = of("LT") - @JvmField val LU = Country(JsonField.of("LU")) + @JvmField val LU = of("LU") - @JvmField val LV = Country(JsonField.of("LV")) + @JvmField val LV = of("LV") - @JvmField val MT = Country(JsonField.of("MT")) + @JvmField val MT = of("MT") - @JvmField val MX = Country(JsonField.of("MX")) + @JvmField val MX = of("MX") - @JvmField val MY = Country(JsonField.of("MY")) + @JvmField val MY = of("MY") - @JvmField val NG = Country(JsonField.of("NG")) + @JvmField val NG = of("NG") - @JvmField val NL = Country(JsonField.of("NL")) + @JvmField val NL = of("NL") - @JvmField val NO = Country(JsonField.of("NO")) + @JvmField val NO = of("NO") - @JvmField val NZ = Country(JsonField.of("NZ")) + @JvmField val NZ = of("NZ") - @JvmField val OM = Country(JsonField.of("OM")) + @JvmField val OM = of("OM") - @JvmField val PE = Country(JsonField.of("PE")) + @JvmField val PE = of("PE") - @JvmField val PH = Country(JsonField.of("PH")) + @JvmField val PH = of("PH") - @JvmField val PL = Country(JsonField.of("PL")) + @JvmField val PL = of("PL") - @JvmField val PT = Country(JsonField.of("PT")) + @JvmField val PT = of("PT") - @JvmField val RO = Country(JsonField.of("RO")) + @JvmField val RO = of("RO") - @JvmField val RS = Country(JsonField.of("RS")) + @JvmField val RS = of("RS") - @JvmField val RU = Country(JsonField.of("RU")) + @JvmField val RU = of("RU") - @JvmField val SA = Country(JsonField.of("SA")) + @JvmField val SA = of("SA") - @JvmField val SE = Country(JsonField.of("SE")) + @JvmField val SE = of("SE") - @JvmField val SG = Country(JsonField.of("SG")) + @JvmField val SG = of("SG") - @JvmField val SI = Country(JsonField.of("SI")) + @JvmField val SI = of("SI") - @JvmField val SK = Country(JsonField.of("SK")) + @JvmField val SK = of("SK") - @JvmField val SV = Country(JsonField.of("SV")) + @JvmField val SV = of("SV") - @JvmField val TH = Country(JsonField.of("TH")) + @JvmField val TH = of("TH") - @JvmField val TR = Country(JsonField.of("TR")) + @JvmField val TR = of("TR") - @JvmField val TW = Country(JsonField.of("TW")) + @JvmField val TW = of("TW") - @JvmField val UA = Country(JsonField.of("UA")) + @JvmField val UA = of("UA") - @JvmField val US = Country(JsonField.of("US")) + @JvmField val US = of("US") - @JvmField val UY = Country(JsonField.of("UY")) + @JvmField val UY = of("UY") - @JvmField val VE = Country(JsonField.of("VE")) + @JvmField val VE = of("VE") - @JvmField val VN = Country(JsonField.of("VN")) + @JvmField val VN = of("VN") - @JvmField val ZA = Country(JsonField.of("ZA")) + @JvmField val ZA = of("ZA") @JvmStatic fun of(value: String) = Country(JsonField.of(value)) } @@ -3481,171 +3468,171 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is Country && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val AD_NRT = Type(JsonField.of("ad_nrt")) + @JvmField val AD_NRT = of("ad_nrt") - @JvmField val AE_TRN = Type(JsonField.of("ae_trn")) + @JvmField val AE_TRN = of("ae_trn") - @JvmField val AR_CUIT = Type(JsonField.of("ar_cuit")) + @JvmField val AR_CUIT = of("ar_cuit") - @JvmField val EU_VAT = Type(JsonField.of("eu_vat")) + @JvmField val EU_VAT = of("eu_vat") - @JvmField val AU_ABN = Type(JsonField.of("au_abn")) + @JvmField val AU_ABN = of("au_abn") - @JvmField val AU_ARN = Type(JsonField.of("au_arn")) + @JvmField val AU_ARN = of("au_arn") - @JvmField val BG_UIC = Type(JsonField.of("bg_uic")) + @JvmField val BG_UIC = of("bg_uic") - @JvmField val BH_VAT = Type(JsonField.of("bh_vat")) + @JvmField val BH_VAT = of("bh_vat") - @JvmField val BO_TIN = Type(JsonField.of("bo_tin")) + @JvmField val BO_TIN = of("bo_tin") - @JvmField val BR_CNPJ = Type(JsonField.of("br_cnpj")) + @JvmField val BR_CNPJ = of("br_cnpj") - @JvmField val BR_CPF = Type(JsonField.of("br_cpf")) + @JvmField val BR_CPF = of("br_cpf") - @JvmField val CA_BN = Type(JsonField.of("ca_bn")) + @JvmField val CA_BN = of("ca_bn") - @JvmField val CA_GST_HST = Type(JsonField.of("ca_gst_hst")) + @JvmField val CA_GST_HST = of("ca_gst_hst") - @JvmField val CA_PST_BC = Type(JsonField.of("ca_pst_bc")) + @JvmField val CA_PST_BC = of("ca_pst_bc") - @JvmField val CA_PST_MB = Type(JsonField.of("ca_pst_mb")) + @JvmField val CA_PST_MB = of("ca_pst_mb") - @JvmField val CA_PST_SK = Type(JsonField.of("ca_pst_sk")) + @JvmField val CA_PST_SK = of("ca_pst_sk") - @JvmField val CA_QST = Type(JsonField.of("ca_qst")) + @JvmField val CA_QST = of("ca_qst") - @JvmField val CH_VAT = Type(JsonField.of("ch_vat")) + @JvmField val CH_VAT = of("ch_vat") - @JvmField val CL_TIN = Type(JsonField.of("cl_tin")) + @JvmField val CL_TIN = of("cl_tin") - @JvmField val CN_TIN = Type(JsonField.of("cn_tin")) + @JvmField val CN_TIN = of("cn_tin") - @JvmField val CO_NIT = Type(JsonField.of("co_nit")) + @JvmField val CO_NIT = of("co_nit") - @JvmField val CR_TIN = Type(JsonField.of("cr_tin")) + @JvmField val CR_TIN = of("cr_tin") - @JvmField val DO_RCN = Type(JsonField.of("do_rcn")) + @JvmField val DO_RCN = of("do_rcn") - @JvmField val EC_RUC = Type(JsonField.of("ec_ruc")) + @JvmField val EC_RUC = of("ec_ruc") - @JvmField val EG_TIN = Type(JsonField.of("eg_tin")) + @JvmField val EG_TIN = of("eg_tin") - @JvmField val ES_CIF = Type(JsonField.of("es_cif")) + @JvmField val ES_CIF = of("es_cif") - @JvmField val EU_OSS_VAT = Type(JsonField.of("eu_oss_vat")) + @JvmField val EU_OSS_VAT = of("eu_oss_vat") - @JvmField val GB_VAT = Type(JsonField.of("gb_vat")) + @JvmField val GB_VAT = of("gb_vat") - @JvmField val GE_VAT = Type(JsonField.of("ge_vat")) + @JvmField val GE_VAT = of("ge_vat") - @JvmField val HK_BR = Type(JsonField.of("hk_br")) + @JvmField val HK_BR = of("hk_br") - @JvmField val HU_TIN = Type(JsonField.of("hu_tin")) + @JvmField val HU_TIN = of("hu_tin") - @JvmField val ID_NPWP = Type(JsonField.of("id_npwp")) + @JvmField val ID_NPWP = of("id_npwp") - @JvmField val IL_VAT = Type(JsonField.of("il_vat")) + @JvmField val IL_VAT = of("il_vat") - @JvmField val IN_GST = Type(JsonField.of("in_gst")) + @JvmField val IN_GST = of("in_gst") - @JvmField val IS_VAT = Type(JsonField.of("is_vat")) + @JvmField val IS_VAT = of("is_vat") - @JvmField val JP_CN = Type(JsonField.of("jp_cn")) + @JvmField val JP_CN = of("jp_cn") - @JvmField val JP_RN = Type(JsonField.of("jp_rn")) + @JvmField val JP_RN = of("jp_rn") - @JvmField val JP_TRN = Type(JsonField.of("jp_trn")) + @JvmField val JP_TRN = of("jp_trn") - @JvmField val KE_PIN = Type(JsonField.of("ke_pin")) + @JvmField val KE_PIN = of("ke_pin") - @JvmField val KR_BRN = Type(JsonField.of("kr_brn")) + @JvmField val KR_BRN = of("kr_brn") - @JvmField val KZ_BIN = Type(JsonField.of("kz_bin")) + @JvmField val KZ_BIN = of("kz_bin") - @JvmField val LI_UID = Type(JsonField.of("li_uid")) + @JvmField val LI_UID = of("li_uid") - @JvmField val MX_RFC = Type(JsonField.of("mx_rfc")) + @JvmField val MX_RFC = of("mx_rfc") - @JvmField val MY_FRP = Type(JsonField.of("my_frp")) + @JvmField val MY_FRP = of("my_frp") - @JvmField val MY_ITN = Type(JsonField.of("my_itn")) + @JvmField val MY_ITN = of("my_itn") - @JvmField val MY_SST = Type(JsonField.of("my_sst")) + @JvmField val MY_SST = of("my_sst") - @JvmField val NG_TIN = Type(JsonField.of("ng_tin")) + @JvmField val NG_TIN = of("ng_tin") - @JvmField val NO_VAT = Type(JsonField.of("no_vat")) + @JvmField val NO_VAT = of("no_vat") - @JvmField val NO_VOEC = Type(JsonField.of("no_voec")) + @JvmField val NO_VOEC = of("no_voec") - @JvmField val NZ_GST = Type(JsonField.of("nz_gst")) + @JvmField val NZ_GST = of("nz_gst") - @JvmField val OM_VAT = Type(JsonField.of("om_vat")) + @JvmField val OM_VAT = of("om_vat") - @JvmField val PE_RUC = Type(JsonField.of("pe_ruc")) + @JvmField val PE_RUC = of("pe_ruc") - @JvmField val PH_TIN = Type(JsonField.of("ph_tin")) + @JvmField val PH_TIN = of("ph_tin") - @JvmField val RO_TIN = Type(JsonField.of("ro_tin")) + @JvmField val RO_TIN = of("ro_tin") - @JvmField val RS_PIB = Type(JsonField.of("rs_pib")) + @JvmField val RS_PIB = of("rs_pib") - @JvmField val RU_INN = Type(JsonField.of("ru_inn")) + @JvmField val RU_INN = of("ru_inn") - @JvmField val RU_KPP = Type(JsonField.of("ru_kpp")) + @JvmField val RU_KPP = of("ru_kpp") - @JvmField val SA_VAT = Type(JsonField.of("sa_vat")) + @JvmField val SA_VAT = of("sa_vat") - @JvmField val SG_GST = Type(JsonField.of("sg_gst")) + @JvmField val SG_GST = of("sg_gst") - @JvmField val SG_UEN = Type(JsonField.of("sg_uen")) + @JvmField val SG_UEN = of("sg_uen") - @JvmField val SI_TIN = Type(JsonField.of("si_tin")) + @JvmField val SI_TIN = of("si_tin") - @JvmField val SV_NIT = Type(JsonField.of("sv_nit")) + @JvmField val SV_NIT = of("sv_nit") - @JvmField val TH_VAT = Type(JsonField.of("th_vat")) + @JvmField val TH_VAT = of("th_vat") - @JvmField val TR_TIN = Type(JsonField.of("tr_tin")) + @JvmField val TR_TIN = of("tr_tin") - @JvmField val TW_VAT = Type(JsonField.of("tw_vat")) + @JvmField val TW_VAT = of("tw_vat") - @JvmField val UA_VAT = Type(JsonField.of("ua_vat")) + @JvmField val UA_VAT = of("ua_vat") - @JvmField val US_EIN = Type(JsonField.of("us_ein")) + @JvmField val US_EIN = of("us_ein") - @JvmField val UY_RUC = Type(JsonField.of("uy_ruc")) + @JvmField val UY_RUC = of("uy_ruc") - @JvmField val VE_RIF = Type(JsonField.of("ve_rif")) + @JvmField val VE_RIF = of("ve_rif") - @JvmField val VN_TIN = Type(JsonField.of("vn_tin")) + @JvmField val VN_TIN = of("vn_tin") - @JvmField val ZA_VAT = Type(JsonField.of("za_vat")) + @JvmField val ZA_VAT = of("za_vat") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -3952,6 +3939,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3980,25 +3979,13 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is InvoiceSource && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val SUBSCRIPTION = InvoiceSource(JsonField.of("subscription")) + @JvmField val SUBSCRIPTION = of("subscription") - @JvmField val PARTIAL = InvoiceSource(JsonField.of("partial")) + @JvmField val PARTIAL = of("partial") - @JvmField val ONE_OFF = InvoiceSource(JsonField.of("one_off")) + @JvmField val ONE_OFF = of("one_off") @JvmStatic fun of(value: String) = InvoiceSource(JsonField.of(value)) } @@ -4033,6 +4020,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is InvoiceSource && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = LineItem.Builder::class) @@ -6134,21 +6133,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MATRIX = Type(JsonField.of("matrix")) + @JvmField val MATRIX = of("matrix") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -6175,6 +6162,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6593,21 +6592,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val TIER = Type(JsonField.of("tier")) + @JvmField val TIER = of("tier") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -6634,6 +6621,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6908,21 +6907,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val NULL = Type(JsonField.of("'null'")) + @JvmField val NULL = of("'null'") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -6949,6 +6936,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -7656,21 +7655,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is PaymentProvider && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val STRIPE = PaymentProvider(JsonField.of("stripe")) + @JvmField val STRIPE = of("stripe") @JvmStatic fun of(value: String) = PaymentProvider(JsonField.of(value)) } @@ -7697,6 +7684,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PaymentProvider && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -7889,29 +7888,17 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ISSUED = Status(JsonField.of("issued")) + @JvmField val ISSUED = of("issued") - @JvmField val PAID = Status(JsonField.of("paid")) + @JvmField val PAID = of("paid") - @JvmField val SYNCED = Status(JsonField.of("synced")) + @JvmField val SYNCED = of("synced") - @JvmField val VOID = Status(JsonField.of("void")) + @JvmField val VOID = of("void") - @JvmField val DRAFT = Status(JsonField.of("draft")) + @JvmField val DRAFT = of("draft") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -7954,6 +7941,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = Subscription.Builder::class) diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceIssueParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceIssueParams.kt index 9f830dc6..a25314c0 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceIssueParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceIssueParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateParams.kt index de3412db..5870113e 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.time.LocalDate import java.util.Objects diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponse.kt index ec7ec677..14c5c14c 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponse.kt @@ -2102,21 +2102,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MATRIX = Type(JsonField.of("matrix")) + @JvmField val MATRIX = of("matrix") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -2143,6 +2131,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2556,21 +2556,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val TIER = Type(JsonField.of("tier")) + @JvmField val TIER = of("tier") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -2597,6 +2585,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2869,21 +2869,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val NULL = Type(JsonField.of("'null'")) + @JvmField val NULL = of("'null'") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -2910,6 +2898,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListParams.kt index 9cc30c4b..c8d09b4a 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListParams.kt @@ -5,13 +5,11 @@ package com.withorb.api.models import com.fasterxml.jackson.annotation.JsonCreator import com.withorb.api.core.Enum import com.withorb.api.core.JsonField -import com.withorb.api.core.JsonValue import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.LocalDate import java.time.OffsetDateTime import java.time.format.DateTimeFormatter @@ -387,23 +385,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DateType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DUE_DATE = DateType(JsonField.of("due_date")) + @JvmField val DUE_DATE = of("due_date") - @JvmField val INVOICE_DATE = DateType(JsonField.of("invoice_date")) + @JvmField val INVOICE_DATE = of("invoice_date") @JvmStatic fun of(value: String) = DateType(JsonField.of(value)) } @@ -434,39 +420,39 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Status - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + return /* spotless:off */ other is DateType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Status + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val DRAFT = Status(JsonField.of("draft")) + @JvmField val DRAFT = of("draft") - @JvmField val ISSUED = Status(JsonField.of("issued")) + @JvmField val ISSUED = of("issued") - @JvmField val PAID = Status(JsonField.of("paid")) + @JvmField val PAID = of("paid") - @JvmField val SYNCED = Status(JsonField.of("synced")) + @JvmField val SYNCED = of("synced") - @JvmField val VOID = Status(JsonField.of("void")) + @JvmField val VOID = of("void") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -509,6 +495,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceMarkPaidParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceMarkPaidParams.kt index ff339055..6c8245ef 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceMarkPaidParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceMarkPaidParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.time.LocalDate import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoicePayParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoicePayParams.kt index 6cba08b4..013d5693 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoicePayParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoicePayParams.kt @@ -7,7 +7,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceUpdateParams.kt index 94bc4ca8..ffe85b08 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceUpdateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceUpdateParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceVoidInvoiceParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceVoidInvoiceParams.kt index 762213f9..0b7a4aa9 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceVoidInvoiceParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceVoidInvoiceParams.kt @@ -7,7 +7,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/Item.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/Item.kt index 6052547c..3ab2ac6a 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/Item.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/Item.kt @@ -247,33 +247,21 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ExternalConnectionName && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val STRIPE = ExternalConnectionName(JsonField.of("stripe")) + @JvmField val STRIPE = of("stripe") - @JvmField val QUICKBOOKS = ExternalConnectionName(JsonField.of("quickbooks")) + @JvmField val QUICKBOOKS = of("quickbooks") - @JvmField val BILL_COM = ExternalConnectionName(JsonField.of("bill.com")) + @JvmField val BILL_COM = of("bill.com") - @JvmField val NETSUITE = ExternalConnectionName(JsonField.of("netsuite")) + @JvmField val NETSUITE = of("netsuite") - @JvmField val TAXJAR = ExternalConnectionName(JsonField.of("taxjar")) + @JvmField val TAXJAR = of("taxjar") - @JvmField val AVALARA = ExternalConnectionName(JsonField.of("avalara")) + @JvmField val AVALARA = of("avalara") - @JvmField val ANROK = ExternalConnectionName(JsonField.of("anrok")) + @JvmField val ANROK = of("anrok") @JvmStatic fun of(value: String) = ExternalConnectionName(JsonField.of(value)) } @@ -324,6 +312,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ExternalConnectionName && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemCreateParams.kt index 5f626f81..b82d4221 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemCreateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemCreateParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects class ItemCreateParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemFetchParams.kt index c90ef9ab..0770e879 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemFetchParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemFetchParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class ItemFetchParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListParams.kt index cddf1597..cde51969 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemUpdateParams.kt index fa3a6aa9..ca8abb57 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemUpdateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemUpdateParams.kt @@ -16,7 +16,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.util.Objects import java.util.Optional @@ -407,33 +406,21 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ExternalConnectionName && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val STRIPE = ExternalConnectionName(JsonField.of("stripe")) + @JvmField val STRIPE = of("stripe") - @JvmField val QUICKBOOKS = ExternalConnectionName(JsonField.of("quickbooks")) + @JvmField val QUICKBOOKS = of("quickbooks") - @JvmField val BILL_COM = ExternalConnectionName(JsonField.of("bill.com")) + @JvmField val BILL_COM = of("bill.com") - @JvmField val NETSUITE = ExternalConnectionName(JsonField.of("netsuite")) + @JvmField val NETSUITE = of("netsuite") - @JvmField val TAXJAR = ExternalConnectionName(JsonField.of("taxjar")) + @JvmField val TAXJAR = of("taxjar") - @JvmField val AVALARA = ExternalConnectionName(JsonField.of("avalara")) + @JvmField val AVALARA = of("avalara") - @JvmField val ANROK = ExternalConnectionName(JsonField.of("anrok")) + @JvmField val ANROK = of("anrok") @JvmStatic fun of(value: String) = ExternalConnectionName(JsonField.of(value)) } @@ -484,6 +471,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ExternalConnectionName && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricCreateParams.kt index 99eb1253..c994759f 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricCreateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricCreateParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricFetchParams.kt index 5a6447d7..33bdf9c9 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricFetchParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricFetchParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class MetricFetchParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListParams.kt index a95ac2b0..5db3d8c9 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import java.time.format.DateTimeFormatter import java.util.Objects diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricUpdateParams.kt index bc61232b..438624c5 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricUpdateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricUpdateParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PercentageDiscount.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PercentageDiscount.kt index c65dcad0..44df27f7 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PercentageDiscount.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PercentageDiscount.kt @@ -173,21 +173,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -214,6 +202,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/Plan.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/Plan.kt index 23d50530..e181231e 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/Plan.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/Plan.kt @@ -1085,21 +1085,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1126,6 +1114,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1381,22 +1381,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1423,6 +1410,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1675,21 +1674,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1716,6 +1703,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1987,21 +1986,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2028,6 +2015,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2280,21 +2279,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2321,6 +2308,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3080,29 +3079,17 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAILY = DurationUnit(JsonField.of("daily")) + @JvmField val DAILY = of("daily") - @JvmField val MONTHLY = DurationUnit(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = DurationUnit(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = DurationUnit(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = DurationUnit(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -3145,6 +3132,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = Maximum.Builder::class) @@ -3559,25 +3558,13 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val ARCHIVED = Status(JsonField.of("archived")) + @JvmField val ARCHIVED = of("archived") - @JvmField val DRAFT = Status(JsonField.of("draft")) + @JvmField val DRAFT = of("draft") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -3612,6 +3599,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TrialConfig.Builder::class) @@ -3711,21 +3710,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is TrialPeriodUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAYS = TrialPeriodUnit(JsonField.of("days")) + @JvmField val DAYS = of("days") @JvmStatic fun of(value: String) = TrialPeriodUnit(JsonField.of(value)) } @@ -3752,6 +3739,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is TrialPeriodUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanCreateParams.kt index e8a31787..6bf6a032 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanCreateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanCreateParams.kt @@ -26,7 +26,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.util.Objects import java.util.Optional import kotlin.jvm.optionals.getOrNull @@ -1737,31 +1736,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -1808,31 +1795,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val UNIT = ModelType(JsonField.of("unit")) + @JvmField val UNIT = of("unit") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -1859,6 +1846,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitConfig.Builder::class) @@ -2063,23 +2062,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -2110,6 +2097,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2241,23 +2240,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -2288,6 +2275,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2885,31 +2884,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -2956,31 +2943,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val PACKAGE = ModelType(JsonField.of("package")) + @JvmField val PACKAGE = of("package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -3007,6 +2994,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageConfig.Builder::class) @@ -3248,23 +3247,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -3295,6 +3282,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3426,23 +3425,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -3473,6 +3460,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -4070,31 +4069,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -4141,6 +4128,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = MatrixConfig.Builder::class) @@ -4440,21 +4439,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MATRIX = ModelType(JsonField.of("matrix")) + @JvmField val MATRIX = of("matrix") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -4481,6 +4468,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -4593,23 +4592,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -4640,6 +4627,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -4771,23 +4770,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -4818,6 +4805,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5415,31 +5414,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -5486,31 +5473,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val TIERED = ModelType(JsonField.of("tiered")) + @JvmField val TIERED = of("tiered") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -5537,6 +5524,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredConfig.Builder::class) @@ -5885,23 +5884,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -5932,6 +5919,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6063,23 +6062,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -6110,6 +6097,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6710,31 +6709,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -6781,31 +6768,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val TIERED_BPS = ModelType(JsonField.of("tiered_bps")) + @JvmField val TIERED_BPS = of("tiered_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -6832,6 +6819,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredBpsConfig.Builder::class) @@ -7217,23 +7216,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -7264,6 +7251,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -7395,23 +7394,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -7442,6 +7429,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -8155,31 +8154,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -8226,31 +8213,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val BPS = ModelType(JsonField.of("bps")) + @JvmField val BPS = of("bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -8277,6 +8264,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -8389,23 +8388,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -8436,6 +8423,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -8567,23 +8566,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -8614,6 +8601,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -9460,31 +9459,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -9531,31 +9518,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val BULK_BPS = ModelType(JsonField.of("bulk_bps")) + @JvmField val BULK_BPS = of("bulk_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -9582,6 +9569,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -9694,23 +9693,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -9741,6 +9728,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -9872,23 +9871,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -9919,6 +9906,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -10728,31 +10727,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -10799,31 +10786,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val BULK = ModelType(JsonField.of("bulk")) + @JvmField val BULK = of("bulk") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -10850,6 +10837,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -10962,23 +10961,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -11009,6 +10996,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -11140,23 +11139,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -11187,6 +11174,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -11793,31 +11792,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -11864,33 +11851,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + + companion object { + + @JvmField val THRESHOLD_TOTAL_AMOUNT = of("threshold_total_amount") - companion object { - - @JvmField - val THRESHOLD_TOTAL_AMOUNT = ModelType(JsonField.of("threshold_total_amount")) - @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -11916,6 +11902,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = ThresholdTotalAmountConfig.Builder::class) @@ -12101,23 +12099,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -12148,6 +12134,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -12279,23 +12277,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -12326,6 +12312,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -12928,31 +12926,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -12999,31 +12985,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val TIERED_PACKAGE = ModelType(JsonField.of("tiered_package")) + @JvmField val TIERED_PACKAGE = of("tiered_package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -13050,6 +13036,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredPackageConfig.Builder::class) @@ -13234,23 +13232,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -13281,6 +13267,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -13412,23 +13410,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -13459,6 +13445,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -14063,31 +14061,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -14134,32 +14120,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField - val TIERED_WITH_MINIMUM = ModelType(JsonField.of("tiered_with_minimum")) + @JvmField val TIERED_WITH_MINIMUM = of("tiered_with_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -14186,6 +14171,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithMinimumConfig.Builder::class) @@ -14370,23 +14367,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -14417,6 +14402,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -14548,23 +14545,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -14595,6 +14580,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -15200,31 +15197,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -15271,31 +15256,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val UNIT_WITH_PERCENT = ModelType(JsonField.of("unit_with_percent")) + @JvmField val UNIT_WITH_PERCENT = of("unit_with_percent") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -15322,6 +15307,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithPercentConfig.Builder::class) @@ -15506,23 +15503,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -15553,6 +15538,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -15684,23 +15681,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -15731,6 +15716,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -16337,31 +16334,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -16408,32 +16393,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField - val PACKAGE_WITH_ALLOCATION = ModelType(JsonField.of("package_with_allocation")) + @JvmField val PACKAGE_WITH_ALLOCATION = of("package_with_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -16460,6 +16444,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageWithAllocationConfig.Builder::class) @@ -16645,23 +16641,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -16692,6 +16676,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -16823,23 +16819,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -16870,6 +16854,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -17475,31 +17471,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -17546,32 +17530,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField - val TIERED_WITH_PRORATION = ModelType(JsonField.of("tiered_with_proration")) + @JvmField val TIERED_WITH_PRORATION = of("tiered_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -17598,6 +17581,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithProrationConfig.Builder::class) @@ -17783,23 +17778,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -17830,6 +17813,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -17961,23 +17956,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -18008,6 +17991,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -18612,31 +18607,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -18683,32 +18666,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField - val UNIT_WITH_PRORATION = ModelType(JsonField.of("unit_with_proration")) + @JvmField val UNIT_WITH_PRORATION = of("unit_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -18735,6 +18717,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithProrationConfig.Builder::class) @@ -18919,23 +18913,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -18966,6 +18948,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -19097,23 +19091,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -19144,6 +19126,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -19748,31 +19742,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -19819,6 +19801,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedAllocationConfig.Builder::class) @@ -19901,21 +19895,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val GROUPED_ALLOCATION = ModelType(JsonField.of("grouped_allocation")) + @JvmField val GROUPED_ALLOCATION = of("grouped_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -19942,6 +19924,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -20054,23 +20048,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -20101,6 +20083,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -20232,23 +20226,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -20279,6 +20261,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -20893,31 +20887,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -20964,6 +20946,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedWithProratedMinimumConfig.Builder::class) @@ -21048,23 +21042,10 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField - val GROUPED_WITH_PRORATED_MINIMUM = - ModelType(JsonField.of("grouped_with_prorated_minimum")) + val GROUPED_WITH_PRORATED_MINIMUM = of("grouped_with_prorated_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -21091,16 +21072,28 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - /** - * For custom cadence: specifies the duration of the billing period in days or months. - */ - @JsonDeserialize(builder = BillingCycleConfiguration.Builder::class) - @NoAutoDetect - class BillingCycleConfiguration - private constructor( - private val duration: JsonField, + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() + } + + /** + * For custom cadence: specifies the duration of the billing period in days or months. + */ + @JsonDeserialize(builder = BillingCycleConfiguration.Builder::class) + @NoAutoDetect + class BillingCycleConfiguration + private constructor( + private val duration: JsonField, private val durationUnit: JsonField, private val additionalProperties: Map, ) { @@ -21203,23 +21196,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -21250,6 +21231,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -21381,23 +21374,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -21428,6 +21409,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -22037,31 +22030,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -22108,6 +22089,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedWithMeteredMinimumConfig.Builder::class) @@ -22192,23 +22185,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val GROUPED_WITH_METERED_MINIMUM = - ModelType(JsonField.of("grouped_with_metered_minimum")) + @JvmField val GROUPED_WITH_METERED_MINIMUM = of("grouped_with_metered_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -22235,6 +22214,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -22347,23 +22338,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -22394,6 +22373,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -22525,23 +22516,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -22572,6 +22551,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -23178,31 +23169,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -23249,6 +23228,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = MatrixWithDisplayNameConfig.Builder::class) @@ -23332,23 +23323,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val MATRIX_WITH_DISPLAY_NAME = - ModelType(JsonField.of("matrix_with_display_name")) + @JvmField val MATRIX_WITH_DISPLAY_NAME = of("matrix_with_display_name") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -23375,6 +23352,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -23487,23 +23476,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -23534,6 +23511,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -23665,23 +23654,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -23712,6 +23689,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -24388,31 +24377,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -24459,32 +24436,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField - val BULK_WITH_PRORATION = ModelType(JsonField.of("bulk_with_proration")) + @JvmField val BULK_WITH_PRORATION = of("bulk_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -24511,6 +24487,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -24623,23 +24611,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -24670,6 +24646,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -24801,23 +24789,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -24848,6 +24824,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -25454,31 +25442,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -25525,6 +25501,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedTieredPackageConfig.Builder::class) @@ -25608,22 +25596,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val GROUPED_TIERED_PACKAGE = ModelType(JsonField.of("grouped_tiered_package")) + @JvmField val GROUPED_TIERED_PACKAGE = of("grouped_tiered_package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -25650,6 +25625,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -25762,23 +25749,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -25809,6 +25784,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -25940,23 +25927,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -25987,6 +25962,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -26175,23 +26162,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val DRAFT = Status(JsonField.of("draft")) + @JvmField val DRAFT = of("draft") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -26222,6 +26197,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdFetchParams.kt index 799706ac..6a883841 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdFetchParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdFetchParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class PlanExternalPlanIdFetchParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdUpdateParams.kt index 324a74b2..a379262b 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdUpdateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdUpdateParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanFetchParams.kt index 78d3f3e3..5046e958 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanFetchParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanFetchParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class PlanFetchParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListParams.kt index 60652f8e..dec12d2e 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListParams.kt @@ -5,12 +5,10 @@ package com.withorb.api.models import com.fasterxml.jackson.annotation.JsonCreator import com.withorb.api.core.Enum import com.withorb.api.core.JsonField -import com.withorb.api.core.JsonValue import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.OffsetDateTime import java.time.format.DateTimeFormatter import java.util.Objects @@ -256,25 +254,13 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val ARCHIVED = Status(JsonField.of("archived")) + @JvmField val ARCHIVED = of("archived") - @JvmField val DRAFT = Status(JsonField.of("draft")) + @JvmField val DRAFT = of("draft") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -309,6 +295,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanUpdateParams.kt index 7fb84c67..691dab3e 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanUpdateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanUpdateParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/Price.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/Price.kt index bc9a4817..85399d1f 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/Price.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/Price.kt @@ -1430,23 +1430,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -1477,6 +1465,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1505,31 +1505,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -1576,6 +1564,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -1783,23 +1783,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -1830,6 +1818,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2303,21 +2303,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val UNIT = ModelType(JsonField.of("unit")) + @JvmField val UNIT = of("unit") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -2344,33 +2332,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -2401,6 +2389,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitConfig.Builder::class) @@ -3169,23 +3169,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -3216,6 +3204,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3244,31 +3244,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -3315,6 +3303,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -3522,23 +3522,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -3569,6 +3557,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -4042,21 +4042,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PACKAGE = ModelType(JsonField.of("package")) + @JvmField val PACKAGE = of("package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -4083,6 +4071,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageConfig.Builder::class) @@ -4222,23 +4222,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -4269,6 +4257,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -4945,23 +4945,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -4992,6 +4980,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5020,31 +5020,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -5091,6 +5079,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -5298,23 +5298,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -5345,6 +5333,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6099,21 +6099,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MATRIX = ModelType(JsonField.of("matrix")) + @JvmField val MATRIX = of("matrix") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -6140,33 +6128,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -6197,6 +6185,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6873,23 +6873,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -6920,6 +6908,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6948,31 +6948,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -7019,6 +7007,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -7226,23 +7226,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -7273,6 +7261,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -7746,21 +7746,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val TIERED = ModelType(JsonField.of("tiered")) + @JvmField val TIERED = of("tiered") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -7787,33 +7775,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -7844,6 +7832,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredConfig.Builder::class) @@ -8747,23 +8747,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -8794,6 +8782,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -8822,31 +8822,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -8893,6 +8881,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -9100,23 +9100,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -9147,6 +9135,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -9620,21 +9620,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val TIERED_BPS = ModelType(JsonField.of("tiered_bps")) + @JvmField val TIERED_BPS = of("tiered_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -9661,33 +9649,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -9718,6 +9706,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredBpsConfig.Builder::class) @@ -10658,23 +10658,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -10705,6 +10693,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -10849,31 +10849,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -10920,6 +10908,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -11127,23 +11127,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -11174,6 +11162,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -11647,21 +11647,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val BPS = ModelType(JsonField.of("bps")) + @JvmField val BPS = of("bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -11688,33 +11676,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -11745,6 +11733,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -12422,23 +12422,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -12469,6 +12457,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -12743,31 +12743,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -12814,6 +12802,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -13021,23 +13021,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -13068,6 +13056,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -13541,21 +13541,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val BULK_BPS = ModelType(JsonField.of("bulk_bps")) + @JvmField val BULK_BPS = of("bulk_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -13582,33 +13570,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -13639,6 +13627,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -14315,23 +14315,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -14362,6 +14350,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -14598,31 +14598,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -14669,6 +14657,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -14876,23 +14876,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -14923,6 +14911,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -15396,21 +15396,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val BULK = ModelType(JsonField.of("bulk")) + @JvmField val BULK = of("bulk") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -15437,33 +15425,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -15494,6 +15482,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -16177,23 +16177,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -16224,6 +16212,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -16252,31 +16252,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -16323,6 +16311,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -16530,23 +16530,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -16577,6 +16565,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -17050,22 +17050,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val THRESHOLD_TOTAL_AMOUNT = ModelType(JsonField.of("threshold_total_amount")) + @JvmField val THRESHOLD_TOTAL_AMOUNT = of("threshold_total_amount") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -17092,33 +17079,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -17149,6 +17136,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = ThresholdTotalAmountConfig.Builder::class) @@ -17901,23 +17900,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -17948,6 +17935,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -17976,31 +17975,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -18047,6 +18034,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -18254,23 +18253,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -18301,6 +18288,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -18774,21 +18773,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val TIERED_PACKAGE = ModelType(JsonField.of("tiered_package")) + @JvmField val TIERED_PACKAGE = of("tiered_package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -18815,33 +18802,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -18872,6 +18859,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredPackageConfig.Builder::class) @@ -19624,23 +19623,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -19671,6 +19658,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -19699,31 +19698,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -19770,6 +19757,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -20049,23 +20048,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -20096,6 +20083,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -20569,21 +20568,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val GROUPED_TIERED = ModelType(JsonField.of("grouped_tiered")) + @JvmField val GROUPED_TIERED = of("grouped_tiered") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -20610,33 +20597,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -20667,6 +20654,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -21349,23 +21348,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -21396,6 +21383,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -21424,31 +21423,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -21495,6 +21482,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -21702,23 +21701,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -21749,6 +21736,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -22222,21 +22221,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val TIERED_WITH_MINIMUM = ModelType(JsonField.of("tiered_with_minimum")) + @JvmField val TIERED_WITH_MINIMUM = of("tiered_with_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -22263,33 +22250,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -22320,6 +22307,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithMinimumConfig.Builder::class) @@ -23078,23 +23077,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -23125,6 +23112,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -23153,31 +23152,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -23224,6 +23211,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -23431,23 +23430,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -23478,6 +23465,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -23951,23 +23950,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val TIERED_PACKAGE_WITH_MINIMUM = - ModelType(JsonField.of("tiered_package_with_minimum")) + @JvmField val TIERED_PACKAGE_WITH_MINIMUM = of("tiered_package_with_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -23994,33 +23979,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -24051,6 +24036,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredPackageWithMinimumConfig.Builder::class) @@ -24809,23 +24806,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -24856,6 +24841,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -24884,31 +24881,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -24955,6 +24940,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -25162,23 +25159,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -25209,6 +25194,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -25682,22 +25679,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PACKAGE_WITH_ALLOCATION = ModelType(JsonField.of("package_with_allocation")) + @JvmField val PACKAGE_WITH_ALLOCATION = of("package_with_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -25724,6 +25708,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageWithAllocationConfig.Builder::class) @@ -25807,23 +25803,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -25854,6 +25838,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -26535,23 +26531,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -26582,6 +26566,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -26610,31 +26606,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -26681,6 +26665,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -26888,23 +26884,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -26935,6 +26919,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -27408,21 +27404,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val UNIT_WITH_PERCENT = ModelType(JsonField.of("unit_with_percent")) + @JvmField val UNIT_WITH_PERCENT = of("unit_with_percent") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -27449,33 +27433,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -27506,6 +27490,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithPercentConfig.Builder::class) @@ -28261,23 +28257,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -28308,6 +28292,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -28336,31 +28332,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -28407,6 +28391,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -28614,23 +28610,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -28661,6 +28645,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -29436,22 +29432,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val MATRIX_WITH_ALLOCATION = ModelType(JsonField.of("matrix_with_allocation")) + @JvmField val MATRIX_WITH_ALLOCATION = of("matrix_with_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -29478,33 +29461,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -29535,6 +29518,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -30217,23 +30212,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -30264,6 +30247,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -30292,31 +30287,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -30363,6 +30346,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -30570,23 +30565,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -30617,6 +30600,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -31090,22 +31085,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val TIERED_WITH_PRORATION = ModelType(JsonField.of("tiered_with_proration")) + @JvmField val TIERED_WITH_PRORATION = of("tiered_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -31132,33 +31114,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -31189,6 +31171,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithProrationConfig.Builder::class) @@ -31943,23 +31937,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -31990,6 +31972,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -32018,31 +32012,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -32089,6 +32071,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -32296,23 +32290,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -32343,6 +32325,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -32816,21 +32810,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val UNIT_WITH_PRORATION = ModelType(JsonField.of("unit_with_proration")) + @JvmField val UNIT_WITH_PRORATION = of("unit_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -32857,33 +32839,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -32914,6 +32896,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithProrationConfig.Builder::class) @@ -33668,23 +33662,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -33715,6 +33697,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -33743,31 +33737,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -33814,6 +33796,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -34093,23 +34087,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -34140,6 +34122,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -34613,21 +34607,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val GROUPED_ALLOCATION = ModelType(JsonField.of("grouped_allocation")) + @JvmField val GROUPED_ALLOCATION = of("grouped_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -34654,33 +34636,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -34711,6 +34693,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -35398,23 +35392,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -35445,6 +35427,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -35473,31 +35467,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -35544,6 +35526,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -35825,23 +35819,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -35872,6 +35854,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -36345,23 +36339,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val GROUPED_WITH_PRORATED_MINIMUM = - ModelType(JsonField.of("grouped_with_prorated_minimum")) + @JvmField val GROUPED_WITH_PRORATED_MINIMUM = of("grouped_with_prorated_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -36388,33 +36368,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -36445,6 +36425,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -37132,23 +37124,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -37179,6 +37159,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -37207,31 +37199,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -37278,6 +37258,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -37559,23 +37551,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -37606,6 +37586,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -38079,23 +38071,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val GROUPED_WITH_METERED_MINIMUM = - ModelType(JsonField.of("grouped_with_metered_minimum")) + @JvmField val GROUPED_WITH_METERED_MINIMUM = of("grouped_with_metered_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -38122,33 +38100,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -38179,6 +38157,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -38864,23 +38854,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -38911,6 +38889,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -38939,31 +38929,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -39010,6 +38988,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -39217,23 +39207,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -39264,6 +39242,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -39810,22 +39800,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val MATRIX_WITH_DISPLAY_NAME = ModelType(JsonField.of("matrix_with_display_name")) + @JvmField val MATRIX_WITH_DISPLAY_NAME = of("matrix_with_display_name") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -39852,33 +39829,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -39909,6 +39886,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -40591,23 +40580,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -40638,6 +40615,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -40738,31 +40727,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -40809,6 +40786,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -41016,23 +41005,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -41063,6 +41040,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -41536,21 +41525,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val BULK_WITH_PRORATION = ModelType(JsonField.of("bulk_with_proration")) + @JvmField val BULK_WITH_PRORATION = of("bulk_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -41577,33 +41554,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -41634,6 +41611,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -42317,23 +42306,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -42364,6 +42341,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -42392,31 +42381,19 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -42463,6 +42440,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = CreditAllocation.Builder::class) @@ -42742,23 +42731,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -42789,6 +42766,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -43262,22 +43251,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val GROUPED_TIERED_PACKAGE = ModelType(JsonField.of("grouped_tiered_package")) + @JvmField val GROUPED_TIERED_PACKAGE = of("grouped_tiered_package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -43304,33 +43280,33 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class PriceType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class PriceType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val USAGE_PRICE = PriceType(JsonField.of("usage_price")) + @JvmField val USAGE_PRICE = of("usage_price") - @JvmField val FIXED_PRICE = PriceType(JsonField.of("fixed_price")) + @JvmField val FIXED_PRICE = of("fixed_price") @JvmStatic fun of(value: String) = PriceType(JsonField.of(value)) } @@ -43361,6 +43337,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PriceType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceCreateParams.kt index 63302a7f..c77d88a6 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceCreateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceCreateParams.kt @@ -25,7 +25,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.util.Objects import java.util.Optional import kotlin.jvm.optionals.getOrNull @@ -2260,31 +2259,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -2331,31 +2318,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val UNIT = ModelType(JsonField.of("unit")) + @JvmField val UNIT = of("unit") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -2382,6 +2369,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitConfig.Builder::class) @@ -2542,23 +2541,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -2589,6 +2576,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2694,23 +2693,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -2741,6 +2728,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3109,31 +3108,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -3180,31 +3167,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val PACKAGE = ModelType(JsonField.of("package")) + @JvmField val PACKAGE = of("package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -3231,6 +3218,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageConfig.Builder::class) @@ -3412,23 +3411,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -3459,6 +3446,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3564,23 +3563,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -3611,6 +3598,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3979,31 +3978,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -4050,6 +4037,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = MatrixConfig.Builder::class) @@ -4272,21 +4271,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MATRIX = ModelType(JsonField.of("matrix")) + @JvmField val MATRIX = of("matrix") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -4313,6 +4300,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** For custom cadence: specifies the duration of the billing period in days or months. */ @@ -4396,23 +4395,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -4443,6 +4430,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -4548,23 +4547,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -4595,6 +4582,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -4971,31 +4970,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -5042,6 +5029,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = MatrixWithAllocationConfig.Builder::class) @@ -5275,22 +5274,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val MATRIX_WITH_ALLOCATION = ModelType(JsonField.of("matrix_with_allocation")) + @JvmField val MATRIX_WITH_ALLOCATION = of("matrix_with_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -5317,6 +5303,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** For custom cadence: specifies the duration of the billing period in days or months. */ @@ -5400,23 +5398,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -5447,6 +5433,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5552,23 +5550,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -5599,6 +5585,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5967,31 +5965,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -6038,31 +6024,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val TIERED = ModelType(JsonField.of("tiered")) + @JvmField val TIERED = of("tiered") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -6089,6 +6075,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredConfig.Builder::class) @@ -6347,23 +6345,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -6394,6 +6380,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6499,23 +6497,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -6546,6 +6532,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6916,31 +6914,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -6987,31 +6973,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val TIERED_BPS = ModelType(JsonField.of("tiered_bps")) + @JvmField val TIERED_BPS = of("tiered_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -7038,6 +7024,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredBpsConfig.Builder::class) @@ -7319,23 +7317,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -7366,6 +7352,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -7471,23 +7469,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -7518,6 +7504,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -7972,31 +7970,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -8043,31 +8029,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val BPS = ModelType(JsonField.of("bps")) + @JvmField val BPS = of("bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -8094,6 +8080,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** For custom cadence: specifies the duration of the billing period in days or months. */ @@ -8177,23 +8175,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -8224,6 +8210,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -8329,23 +8327,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -8376,6 +8362,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -8928,31 +8926,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -8999,31 +8985,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val BULK_BPS = ModelType(JsonField.of("bulk_bps")) + @JvmField val BULK_BPS = of("bulk_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -9050,6 +9036,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** For custom cadence: specifies the duration of the billing period in days or months. */ @@ -9133,23 +9131,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -9180,6 +9166,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -9285,23 +9283,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -9332,6 +9318,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -9863,31 +9861,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -9934,31 +9920,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val BULK = ModelType(JsonField.of("bulk")) + @JvmField val BULK = of("bulk") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -9985,6 +9971,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** For custom cadence: specifies the duration of the billing period in days or months. */ @@ -10068,23 +10066,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -10115,6 +10101,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -10220,23 +10218,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -10267,6 +10253,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -10643,31 +10641,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -10714,32 +10700,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField - val THRESHOLD_TOTAL_AMOUNT = ModelType(JsonField.of("threshold_total_amount")) + @JvmField val THRESHOLD_TOTAL_AMOUNT = of("threshold_total_amount") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -10766,6 +10751,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = ThresholdTotalAmountConfig.Builder::class) @@ -10913,23 +10910,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -10960,6 +10945,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -11065,23 +11062,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -11112,6 +11097,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -11485,31 +11482,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -11556,31 +11541,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val TIERED_PACKAGE = ModelType(JsonField.of("tiered_package")) + @JvmField val TIERED_PACKAGE = of("tiered_package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -11607,6 +11592,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredPackageConfig.Builder::class) @@ -11754,23 +11751,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -11801,6 +11786,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -11906,23 +11903,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -11953,6 +11938,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -12326,31 +12323,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -12397,6 +12382,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedTieredConfig.Builder::class) @@ -12471,21 +12468,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val GROUPED_TIERED = ModelType(JsonField.of("grouped_tiered")) + @JvmField val GROUPED_TIERED = of("grouped_tiered") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -12512,6 +12497,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** For custom cadence: specifies the duration of the billing period in days or months. */ @@ -12595,23 +12592,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -12642,6 +12627,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -12747,23 +12744,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -12794,6 +12779,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -13169,31 +13166,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -13240,31 +13225,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val TIERED_WITH_MINIMUM = ModelType(JsonField.of("tiered_with_minimum")) + @JvmField val TIERED_WITH_MINIMUM = of("tiered_with_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -13291,6 +13276,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithMinimumConfig.Builder::class) @@ -13438,23 +13435,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -13485,6 +13470,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -13590,23 +13587,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -13637,6 +13622,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -14013,31 +14010,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -14084,32 +14069,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField - val PACKAGE_WITH_ALLOCATION = ModelType(JsonField.of("package_with_allocation")) + @JvmField val PACKAGE_WITH_ALLOCATION = of("package_with_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -14136,6 +14120,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageWithAllocationConfig.Builder::class) @@ -14284,23 +14280,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -14331,6 +14315,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -14436,23 +14432,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -14483,6 +14467,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -14861,31 +14857,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -14932,33 +14916,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField - val TIERED_PACKAGE_WITH_MINIMUM = - ModelType(JsonField.of("tiered_package_with_minimum")) + @JvmField val TIERED_PACKAGE_WITH_MINIMUM = of("tiered_package_with_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -14985,6 +14967,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredPackageWithMinimumConfig.Builder::class) @@ -15133,23 +15127,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -15180,6 +15162,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -15285,23 +15279,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -15332,6 +15314,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -15706,31 +15700,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -15777,31 +15759,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val UNIT_WITH_PERCENT = ModelType(JsonField.of("unit_with_percent")) + @JvmField val UNIT_WITH_PERCENT = of("unit_with_percent") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -15828,6 +15810,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithPercentConfig.Builder::class) @@ -15975,23 +15969,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -16022,6 +16004,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -16127,23 +16121,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -16174,6 +16156,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -16550,31 +16544,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -16621,32 +16603,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField - val TIERED_WITH_PRORATION = ModelType(JsonField.of("tiered_with_proration")) + @JvmField val TIERED_WITH_PRORATION = of("tiered_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -16673,6 +16654,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithProrationConfig.Builder::class) @@ -16820,23 +16813,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } + companion object { - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } + @JvmField val DAY = of("day") - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -16867,6 +16848,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -16972,23 +16965,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -17019,6 +17000,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -17394,31 +17387,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -17465,31 +17446,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val UNIT_WITH_PRORATION = ModelType(JsonField.of("unit_with_proration")) + @JvmField val UNIT_WITH_PRORATION = of("unit_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -17516,6 +17497,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithProrationConfig.Builder::class) @@ -17663,23 +17656,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -17710,6 +17691,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -17815,23 +17808,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -17862,6 +17843,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -18237,31 +18230,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -18308,6 +18289,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedAllocationConfig.Builder::class) @@ -18382,21 +18375,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val GROUPED_ALLOCATION = ModelType(JsonField.of("grouped_allocation")) + @JvmField val GROUPED_ALLOCATION = of("grouped_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -18423,6 +18404,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** For custom cadence: specifies the duration of the billing period in days or months. */ @@ -18506,23 +18499,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -18553,6 +18534,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -18658,23 +18651,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -18705,6 +18686,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -19086,31 +19079,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -19157,6 +19138,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedWithProratedMinimumConfig.Builder::class) @@ -19233,23 +19226,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val GROUPED_WITH_PRORATED_MINIMUM = - ModelType(JsonField.of("grouped_with_prorated_minimum")) + @JvmField val GROUPED_WITH_PRORATED_MINIMUM = of("grouped_with_prorated_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -19276,6 +19255,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** For custom cadence: specifies the duration of the billing period in days or months. */ @@ -19359,23 +19350,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -19406,6 +19385,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -19511,23 +19502,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -19558,6 +19537,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -19936,31 +19927,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -20007,6 +19986,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedWithMeteredMinimumConfig.Builder::class) @@ -20083,23 +20074,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val GROUPED_WITH_METERED_MINIMUM = - ModelType(JsonField.of("grouped_with_metered_minimum")) + @JvmField val GROUPED_WITH_METERED_MINIMUM = of("grouped_with_metered_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -20126,6 +20103,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** For custom cadence: specifies the duration of the billing period in days or months. */ @@ -20209,23 +20198,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -20256,6 +20233,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -20361,23 +20350,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -20408,6 +20385,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -20784,31 +20773,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -20855,6 +20832,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = MatrixWithDisplayNameConfig.Builder::class) @@ -20930,22 +20919,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val MATRIX_WITH_DISPLAY_NAME = ModelType(JsonField.of("matrix_with_display_name")) + @JvmField val MATRIX_WITH_DISPLAY_NAME = of("matrix_with_display_name") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -20972,6 +20948,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** For custom cadence: specifies the duration of the billing period in days or months. */ @@ -21055,23 +21043,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -21102,6 +21078,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -21207,23 +21195,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -21254,6 +21230,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -21693,31 +21681,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -21764,31 +21740,31 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val BULK_WITH_PRORATION = ModelType(JsonField.of("bulk_with_proration")) + @JvmField val BULK_WITH_PRORATION = of("bulk_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -21815,6 +21791,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** For custom cadence: specifies the duration of the billing period in days or months. */ @@ -21898,23 +21886,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -21945,6 +21921,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -22050,23 +22038,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -22097,6 +22073,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -22473,31 +22461,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -22544,6 +22520,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedTieredPackageConfig.Builder::class) @@ -22618,22 +22606,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val GROUPED_TIERED_PACKAGE = ModelType(JsonField.of("grouped_tiered_package")) + @JvmField val GROUPED_TIERED_PACKAGE = of("grouped_tiered_package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -22660,6 +22635,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** For custom cadence: specifies the duration of the billing period in days or months. */ @@ -22743,23 +22730,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -22790,6 +22765,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -22895,23 +22882,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -22942,6 +22917,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluateParams.kt index c5d5a454..26582520 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluateParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.time.OffsetDateTime import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdFetchParams.kt index 88f10ef4..532272eb 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdFetchParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdFetchParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class PriceExternalPriceIdFetchParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdUpdateParams.kt index 5a759b68..a7d5c539 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdUpdateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdUpdateParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceFetchParams.kt index 9ea16392..8272d633 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceFetchParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceFetchParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class PriceFetchParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListParams.kt index cd7af706..de6b3e80 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceUpdateParams.kt index aa4fcc0b..e6503a5c 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceUpdateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceUpdateParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/Subscription.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/Subscription.kt index aee059a9..aec0b2fc 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/Subscription.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/Subscription.kt @@ -1456,22 +1456,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1498,6 +1485,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1762,23 +1761,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1805,6 +1790,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2064,22 +2061,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2106,6 +2090,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2384,21 +2380,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2425,6 +2409,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2684,21 +2680,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2725,6 +2709,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3316,21 +3312,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3357,6 +3341,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3580,21 +3576,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3621,6 +3605,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3849,21 +3845,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3890,6 +3874,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6001,25 +5997,13 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val ENDED = Status(JsonField.of("ended")) + @JvmField val ENDED = of("ended") - @JvmField val UPCOMING = Status(JsonField.of("upcoming")) + @JvmField val UPCOMING = of("upcoming") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -6054,6 +6038,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TrialInfo.Builder::class) diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCancelParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCancelParams.kt index 5c7734ee..cc7d2a15 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCancelParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCancelParams.kt @@ -16,7 +16,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.OffsetDateTime import java.util.Objects import java.util.Optional @@ -341,26 +340,13 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is CancelOption && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val END_OF_SUBSCRIPTION_TERM = CancelOption(JsonField.of("end_of_subscription_term")) + @JvmField val END_OF_SUBSCRIPTION_TERM = of("end_of_subscription_term") - @JvmField val IMMEDIATE = CancelOption(JsonField.of("immediate")) + @JvmField val IMMEDIATE = of("immediate") - @JvmField val REQUESTED_DATE = CancelOption(JsonField.of("requested_date")) + @JvmField val REQUESTED_DATE = of("requested_date") @JvmStatic fun of(value: String) = CancelOption(JsonField.of(value)) } @@ -395,6 +381,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is CancelOption && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCancelResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCancelResponse.kt index 8fbf2b03..121df0cc 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCancelResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCancelResponse.kt @@ -1441,22 +1441,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1483,6 +1470,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1747,23 +1746,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1790,6 +1775,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2049,22 +2046,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2091,6 +2075,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2369,21 +2365,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2410,6 +2394,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2669,21 +2665,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2710,6 +2694,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3301,21 +3297,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3342,6 +3326,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3565,21 +3561,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3606,6 +3590,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3834,21 +3830,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3875,6 +3859,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5986,25 +5982,13 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val ENDED = Status(JsonField.of("ended")) + @JvmField val ENDED = of("ended") - @JvmField val UPCOMING = Status(JsonField.of("upcoming")) + @JvmField val UPCOMING = of("upcoming") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -6039,6 +6023,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TrialInfo.Builder::class) diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCreateParams.kt index ebc927ee..f3dc208d 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCreateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCreateParams.kt @@ -26,7 +26,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.OffsetDateTime import java.util.Objects import java.util.Optional @@ -1700,23 +1699,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1743,6 +1728,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1928,22 +1925,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1970,6 +1954,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2157,22 +2153,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2199,6 +2182,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2403,21 +2398,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2444,6 +2427,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2629,21 +2624,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2670,6 +2653,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3006,25 +3001,13 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3059,6 +3042,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -4480,31 +4475,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -4551,32 +4534,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val UNIT = ModelType(JsonField.of("unit")) + @JvmField val UNIT = of("unit") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -4603,6 +4586,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitConfig.Builder::class) @@ -4812,23 +4807,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -4860,6 +4843,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -4995,23 +4990,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -5043,6 +5026,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5692,31 +5687,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -5763,32 +5746,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val PACKAGE = ModelType(JsonField.of("package")) + @JvmField val PACKAGE = of("package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -5815,6 +5798,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageConfig.Builder::class) @@ -6063,23 +6058,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -6111,6 +6094,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6246,23 +6241,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -6294,6 +6277,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6943,31 +6938,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -7014,6 +6997,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = MatrixConfig.Builder::class) @@ -7322,21 +7317,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MATRIX = ModelType(JsonField.of("matrix")) + @JvmField val MATRIX = of("matrix") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -7363,6 +7346,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -7479,23 +7474,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -7527,6 +7510,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -7662,23 +7657,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -7710,6 +7693,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -8359,31 +8354,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -8430,32 +8413,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val TIERED = ModelType(JsonField.of("tiered")) + @JvmField val TIERED = of("tiered") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -8482,6 +8465,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredConfig.Builder::class) @@ -8846,23 +8841,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -8894,6 +8877,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -9029,23 +9024,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -9077,6 +9060,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -9730,31 +9725,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -9801,32 +9784,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val TIERED_BPS = ModelType(JsonField.of("tiered_bps")) + @JvmField val TIERED_BPS = of("tiered_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -9853,6 +9836,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredBpsConfig.Builder::class) @@ -10243,23 +10238,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -10291,6 +10274,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -10426,23 +10421,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -10474,6 +10457,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -11240,31 +11235,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -11311,32 +11294,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val BPS = ModelType(JsonField.of("bps")) + @JvmField val BPS = of("bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -11363,6 +11346,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -11479,23 +11474,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -11527,6 +11510,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -11662,23 +11657,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -11710,6 +11693,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -12611,31 +12606,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -12682,32 +12665,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val BULK_BPS = ModelType(JsonField.of("bulk_bps")) + @JvmField val BULK_BPS = of("bulk_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -12734,6 +12717,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -12850,23 +12845,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -12898,6 +12881,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -13033,23 +13028,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -13081,6 +13064,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -13944,31 +13939,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -14015,32 +13998,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val BULK = ModelType(JsonField.of("bulk")) + @JvmField val BULK = of("bulk") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -14067,197 +14050,27 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - /** - * For custom cadence: specifies the duration of the billing period in days or - * months. - */ - @JsonDeserialize(builder = BillingCycleConfiguration.Builder::class) - @NoAutoDetect - class BillingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): BillingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = - apply { - this.duration = billingCycleConfiguration.duration - this.durationUnit = billingCycleConfiguration.durationUnit - additionalProperties(billingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): BillingCycleConfiguration = - BillingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() - } override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode + override fun hashCode() = value.hashCode() - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + override fun toString() = value.toString() } /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. + * For custom cadence: specifies the duration of the billing period in days or + * months. */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @JsonDeserialize(builder = BillingCycleConfiguration.Builder::class) @NoAutoDetect - class InvoicingCycleConfiguration + class BillingCycleConfiguration private constructor( private val duration: JsonField, private val durationUnit: JsonField, @@ -14284,7 +14097,7 @@ constructor( @ExcludeMissing fun _additionalProperties(): Map = additionalProperties - fun validate(): InvoicingCycleConfiguration = apply { + fun validate(): BillingCycleConfiguration = apply { if (!validated) { duration() durationUnit() @@ -14307,13 +14120,12 @@ constructor( mutableMapOf() @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } + internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = + apply { + this.duration = billingCycleConfiguration.duration + this.durationUnit = billingCycleConfiguration.durationUnit + additionalProperties(billingCycleConfiguration.additionalProperties) + } /** The duration of the billing period. */ fun duration(duration: Long) = duration(JsonField.of(duration)) @@ -14349,8 +14161,8 @@ constructor( additionalProperties: Map ) = apply { this.additionalProperties.putAll(additionalProperties) } - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( + fun build(): BillingCycleConfiguration = + BillingCycleConfiguration( duration, durationUnit, additionalProperties.toImmutable(), @@ -14366,6 +14178,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -14377,12 +14226,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -14414,6 +14397,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -15079,31 +15074,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -15150,34 +15133,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val THRESHOLD_TOTAL_AMOUNT = - ModelType(JsonField.of("threshold_total_amount")) + @JvmField val THRESHOLD_TOTAL_AMOUNT = of("threshold_total_amount") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -15204,6 +15185,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = ThresholdTotalAmountConfig.Builder::class) @@ -15396,23 +15389,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -15444,6 +15425,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -15579,23 +15572,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -15627,6 +15608,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -16285,31 +16278,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -16356,32 +16337,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val TIERED_PACKAGE = ModelType(JsonField.of("tiered_package")) + @JvmField val TIERED_PACKAGE = of("tiered_package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -16408,6 +16389,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredPackageConfig.Builder::class) @@ -16539,195 +16532,12 @@ constructor( mutableMapOf() @JvmSynthetic - internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = - apply { - this.duration = billingCycleConfiguration.duration - this.durationUnit = billingCycleConfiguration.durationUnit - additionalProperties(billingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): BillingCycleConfiguration = - BillingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() - } - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ - } - - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode - - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" - } - - /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. - */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) - @NoAutoDetect - class InvoicingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): InvoicingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } + internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = + apply { + this.duration = billingCycleConfiguration.duration + this.durationUnit = billingCycleConfiguration.durationUnit + additionalProperties(billingCycleConfiguration.additionalProperties) + } /** The duration of the billing period. */ fun duration(duration: Long) = duration(JsonField.of(duration)) @@ -16763,8 +16573,8 @@ constructor( additionalProperties: Map ) = apply { this.additionalProperties.putAll(additionalProperties) } - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( + fun build(): BillingCycleConfiguration = + BillingCycleConfiguration( duration, durationUnit, additionalProperties.toImmutable(), @@ -16780,6 +16590,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -16791,12 +16638,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -16828,6 +16809,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -17488,31 +17481,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -17559,33 +17540,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val TIERED_WITH_MINIMUM = ModelType(JsonField.of("tiered_with_minimum")) + @JvmField val TIERED_WITH_MINIMUM = of("tiered_with_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -17612,6 +17592,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithMinimumConfig.Builder::class) @@ -17802,23 +17794,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -17850,6 +17830,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -17985,23 +17977,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -18033,6 +18013,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -18692,31 +18684,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -18763,33 +18743,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val UNIT_WITH_PERCENT = ModelType(JsonField.of("unit_with_percent")) + @JvmField val UNIT_WITH_PERCENT = of("unit_with_percent") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -18816,6 +18795,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithPercentConfig.Builder::class) @@ -18947,195 +18938,12 @@ constructor( mutableMapOf() @JvmSynthetic - internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = - apply { - this.duration = billingCycleConfiguration.duration - this.durationUnit = billingCycleConfiguration.durationUnit - additionalProperties(billingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): BillingCycleConfiguration = - BillingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() - } - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ - } - - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode - - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" - } - - /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. - */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) - @NoAutoDetect - class InvoicingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): InvoicingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } + internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = + apply { + this.duration = billingCycleConfiguration.duration + this.durationUnit = billingCycleConfiguration.durationUnit + additionalProperties(billingCycleConfiguration.additionalProperties) + } /** The duration of the billing period. */ fun duration(duration: Long) = duration(JsonField.of(duration)) @@ -19171,8 +18979,8 @@ constructor( additionalProperties: Map ) = apply { this.additionalProperties.putAll(additionalProperties) } - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( + fun build(): BillingCycleConfiguration = + BillingCycleConfiguration( duration, durationUnit, additionalProperties.toImmutable(), @@ -19188,6 +18996,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -19199,12 +19044,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -19236,6 +19215,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -19902,31 +19893,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -19973,34 +19952,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val PACKAGE_WITH_ALLOCATION = - ModelType(JsonField.of("package_with_allocation")) + @JvmField val PACKAGE_WITH_ALLOCATION = of("package_with_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -20027,6 +20004,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageWithAllocationConfig.Builder::class) @@ -20218,23 +20207,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -20266,6 +20243,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -20401,23 +20390,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -20449,6 +20426,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -21110,31 +21099,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -21181,33 +21158,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val TIERED_WITH_PRORATION = ModelType(JsonField.of("tiered_with_proration")) + @JvmField val TIERED_WITH_PRORATION = of("tiered_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -21234,6 +21210,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithProrationConfig.Builder::class) @@ -21366,195 +21354,12 @@ constructor( mutableMapOf() @JvmSynthetic - internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = - apply { - this.duration = billingCycleConfiguration.duration - this.durationUnit = billingCycleConfiguration.durationUnit - additionalProperties(billingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): BillingCycleConfiguration = - BillingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() - } - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ - } - - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode - - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" - } - - /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. - */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) - @NoAutoDetect - class InvoicingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): InvoicingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } + internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = + apply { + this.duration = billingCycleConfiguration.duration + this.durationUnit = billingCycleConfiguration.durationUnit + additionalProperties(billingCycleConfiguration.additionalProperties) + } /** The duration of the billing period. */ fun duration(duration: Long) = duration(JsonField.of(duration)) @@ -21590,8 +21395,8 @@ constructor( additionalProperties: Map ) = apply { this.additionalProperties.putAll(additionalProperties) } - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( + fun build(): BillingCycleConfiguration = + BillingCycleConfiguration( duration, durationUnit, additionalProperties.toImmutable(), @@ -21607,6 +21412,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -21618,12 +21460,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -21655,6 +21631,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -22315,31 +22303,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -22386,33 +22362,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val UNIT_WITH_PRORATION = ModelType(JsonField.of("unit_with_proration")) + @JvmField val UNIT_WITH_PRORATION = of("unit_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -22439,6 +22414,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithProrationConfig.Builder::class) @@ -22629,23 +22616,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -22677,6 +22652,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -22812,23 +22799,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -22860,6 +22835,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -23520,31 +23507,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -23591,6 +23566,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedAllocationConfig.Builder::class) @@ -23676,22 +23663,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val GROUPED_ALLOCATION = ModelType(JsonField.of("grouped_allocation")) + @JvmField val GROUPED_ALLOCATION = of("grouped_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -23718,197 +23692,27 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - /** - * For custom cadence: specifies the duration of the billing period in days or - * months. - */ - @JsonDeserialize(builder = BillingCycleConfiguration.Builder::class) - @NoAutoDetect - class BillingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): BillingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = - apply { - this.duration = billingCycleConfiguration.duration - this.durationUnit = billingCycleConfiguration.durationUnit - additionalProperties(billingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): BillingCycleConfiguration = - BillingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() - } override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode + override fun hashCode() = value.hashCode() - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + override fun toString() = value.toString() } /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. + * For custom cadence: specifies the duration of the billing period in days or + * months. */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @JsonDeserialize(builder = BillingCycleConfiguration.Builder::class) @NoAutoDetect - class InvoicingCycleConfiguration + class BillingCycleConfiguration private constructor( private val duration: JsonField, private val durationUnit: JsonField, @@ -23935,7 +23739,7 @@ constructor( @ExcludeMissing fun _additionalProperties(): Map = additionalProperties - fun validate(): InvoicingCycleConfiguration = apply { + fun validate(): BillingCycleConfiguration = apply { if (!validated) { duration() durationUnit() @@ -23958,13 +23762,12 @@ constructor( mutableMapOf() @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } + internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = + apply { + this.duration = billingCycleConfiguration.duration + this.durationUnit = billingCycleConfiguration.durationUnit + additionalProperties(billingCycleConfiguration.additionalProperties) + } /** The duration of the billing period. */ fun duration(duration: Long) = duration(JsonField.of(duration)) @@ -24000,8 +23803,8 @@ constructor( additionalProperties: Map ) = apply { this.additionalProperties.putAll(additionalProperties) } - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( + fun build(): BillingCycleConfiguration = + BillingCycleConfiguration( duration, durationUnit, additionalProperties.toImmutable(), @@ -24017,6 +23820,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -24028,12 +23868,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -24065,6 +24039,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -24745,31 +24731,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -24816,6 +24790,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedWithProratedMinimumConfig.Builder::class) @@ -24904,23 +24890,10 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField - val GROUPED_WITH_PRORATED_MINIMUM = - ModelType(JsonField.of("grouped_with_prorated_minimum")) + val GROUPED_WITH_PRORATED_MINIMUM = of("grouped_with_prorated_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -24947,6 +24920,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -25063,23 +25048,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -25111,6 +25084,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -25246,23 +25231,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -25294,6 +25267,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -26028,31 +26013,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -26099,33 +26072,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val BULK_WITH_PRORATION = ModelType(JsonField.of("bulk_with_proration")) + @JvmField val BULK_WITH_PRORATION = of("bulk_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -26152,6 +26124,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -26251,191 +26235,8 @@ constructor( additionalProperties: Map ) = apply { this.additionalProperties.putAll(additionalProperties) } - fun build(): BillingCycleConfiguration = - BillingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() - } - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ - } - - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode - - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" - } - - /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. - */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) - @NoAutoDetect - class InvoicingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): InvoicingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( + fun build(): BillingCycleConfiguration = + BillingCycleConfiguration( duration, durationUnit, additionalProperties.toImmutable(), @@ -26451,6 +26252,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -26462,12 +26300,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -26499,6 +26471,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -26758,25 +26742,13 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ExternalMarketplace && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val GOOGLE = ExternalMarketplace(JsonField.of("google")) + @JvmField val GOOGLE = of("google") - @JvmField val AWS = ExternalMarketplace(JsonField.of("aws")) + @JvmField val AWS = of("aws") - @JvmField val AZURE = ExternalMarketplace(JsonField.of("azure")) + @JvmField val AZURE = of("azure") @JvmStatic fun of(value: String) = ExternalMarketplace(JsonField.of(value)) } @@ -26811,6 +26783,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ExternalMarketplace && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -27502,23 +27486,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -27545,6 +27515,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -27730,22 +27712,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -27772,6 +27741,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -27959,22 +27940,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -28001,6 +27969,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -28205,21 +28185,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -28246,6 +28214,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -28431,21 +28411,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -28472,6 +28440,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -28789,25 +28769,13 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -28842,6 +28810,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -30263,31 +30243,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -30334,32 +30302,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val UNIT = ModelType(JsonField.of("unit")) + @JvmField val UNIT = of("unit") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -30386,6 +30354,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitConfig.Builder::class) @@ -30595,23 +30575,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -30643,6 +30611,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -30778,23 +30758,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -30826,6 +30794,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -31475,31 +31455,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -31546,32 +31514,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val PACKAGE = ModelType(JsonField.of("package")) + @JvmField val PACKAGE = of("package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -31598,6 +31566,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageConfig.Builder::class) @@ -31846,23 +31826,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -31894,6 +31862,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -32029,23 +32009,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -32077,6 +32045,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -32726,31 +32706,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -32797,6 +32765,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = MatrixConfig.Builder::class) @@ -33105,21 +33085,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MATRIX = ModelType(JsonField.of("matrix")) + @JvmField val MATRIX = of("matrix") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -33146,6 +33114,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -33262,23 +33242,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -33310,6 +33278,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -33445,23 +33425,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -33493,6 +33461,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -34142,31 +34122,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -34213,32 +34181,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val TIERED = ModelType(JsonField.of("tiered")) + @JvmField val TIERED = of("tiered") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -34265,6 +34233,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredConfig.Builder::class) @@ -34629,23 +34609,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -34677,6 +34645,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -34812,23 +34792,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -34860,6 +34828,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -35513,31 +35493,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -35584,32 +35552,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val TIERED_BPS = ModelType(JsonField.of("tiered_bps")) + @JvmField val TIERED_BPS = of("tiered_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -35636,6 +35604,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredBpsConfig.Builder::class) @@ -36026,23 +36006,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -36074,6 +36042,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -36209,23 +36189,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -36257,6 +36225,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -37023,31 +37003,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -37094,32 +37062,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val BPS = ModelType(JsonField.of("bps")) + @JvmField val BPS = of("bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -37146,6 +37114,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -37262,6 +37242,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -37273,12 +37290,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -37310,140 +37461,6 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ - } - - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode - - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" - } - - /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. - */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) - @NoAutoDetect - class InvoicingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): InvoicingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { @@ -37456,43 +37473,6 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() } override fun equals(other: Any?): Boolean { @@ -38394,31 +38374,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -38465,32 +38433,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val BULK_BPS = ModelType(JsonField.of("bulk_bps")) + @JvmField val BULK_BPS = of("bulk_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -38517,6 +38485,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -38633,23 +38613,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -38681,6 +38649,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -38816,23 +38796,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -38864,6 +38832,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -39727,31 +39707,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -39798,32 +39766,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val BULK = ModelType(JsonField.of("bulk")) + @JvmField val BULK = of("bulk") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -39850,6 +39818,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -39966,23 +39946,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -40014,6 +39982,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -40149,23 +40129,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -40197,6 +40165,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -40862,31 +40842,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -40933,34 +40901,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val THRESHOLD_TOTAL_AMOUNT = - ModelType(JsonField.of("threshold_total_amount")) + @JvmField val THRESHOLD_TOTAL_AMOUNT = of("threshold_total_amount") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -40987,6 +40953,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = ThresholdTotalAmountConfig.Builder::class) @@ -41179,23 +41157,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -41227,6 +41193,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -41362,23 +41340,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -41410,6 +41376,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -42068,31 +42046,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -42139,32 +42105,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val TIERED_PACKAGE = ModelType(JsonField.of("tiered_package")) + @JvmField val TIERED_PACKAGE = of("tiered_package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -42191,6 +42157,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredPackageConfig.Builder::class) @@ -42380,23 +42358,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -42428,6 +42394,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -42563,23 +42541,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -42611,6 +42577,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -43271,31 +43249,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -43342,33 +43308,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val TIERED_WITH_MINIMUM = ModelType(JsonField.of("tiered_with_minimum")) + @JvmField val TIERED_WITH_MINIMUM = of("tiered_with_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -43395,6 +43360,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithMinimumConfig.Builder::class) @@ -43585,23 +43562,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -43633,6 +43598,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -43768,23 +43745,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -43816,6 +43781,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -44475,31 +44452,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -44546,33 +44511,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val UNIT_WITH_PERCENT = ModelType(JsonField.of("unit_with_percent")) + @JvmField val UNIT_WITH_PERCENT = of("unit_with_percent") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -44599,6 +44563,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithPercentConfig.Builder::class) @@ -44788,23 +44764,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -44836,6 +44800,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -44971,23 +44947,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -45019,6 +44983,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -45685,31 +45661,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -45756,34 +45720,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val PACKAGE_WITH_ALLOCATION = - ModelType(JsonField.of("package_with_allocation")) + @JvmField val PACKAGE_WITH_ALLOCATION = of("package_with_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -45810,6 +45772,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageWithAllocationConfig.Builder::class) @@ -46001,23 +45975,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -46049,6 +46011,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -46184,23 +46158,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -46232,6 +46194,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -46893,31 +46867,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -46964,33 +46926,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val TIERED_WITH_PRORATION = ModelType(JsonField.of("tiered_with_proration")) + @JvmField val TIERED_WITH_PRORATION = of("tiered_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -47017,6 +46978,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithProrationConfig.Builder::class) @@ -47207,23 +47180,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -47255,6 +47216,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -47390,23 +47363,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -47438,6 +47399,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -48098,31 +48071,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -48169,33 +48130,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val UNIT_WITH_PRORATION = ModelType(JsonField.of("unit_with_proration")) + @JvmField val UNIT_WITH_PRORATION = of("unit_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -48222,6 +48182,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithProrationConfig.Builder::class) @@ -48412,23 +48384,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -48460,6 +48420,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -48595,23 +48567,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -48643,6 +48603,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -49303,31 +49275,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -49374,6 +49334,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedAllocationConfig.Builder::class) @@ -49459,22 +49431,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val GROUPED_ALLOCATION = ModelType(JsonField.of("grouped_allocation")) + @JvmField val GROUPED_ALLOCATION = of("grouped_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -49501,6 +49460,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -49617,23 +49588,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -49665,6 +49624,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -49800,23 +49771,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -49848,6 +49807,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -50528,31 +50499,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -50599,6 +50558,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedWithProratedMinimumConfig.Builder::class) @@ -50687,23 +50658,10 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField - val GROUPED_WITH_PRORATED_MINIMUM = - ModelType(JsonField.of("grouped_with_prorated_minimum")) + val GROUPED_WITH_PRORATED_MINIMUM = of("grouped_with_prorated_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -50730,6 +50688,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -50846,23 +50816,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -50894,6 +50852,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -51029,23 +50999,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -51077,6 +51035,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -51811,31 +51781,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -51882,33 +51840,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val BULK_WITH_PRORATION = ModelType(JsonField.of("bulk_with_proration")) + @JvmField val BULK_WITH_PRORATION = of("bulk_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -51935,6 +51892,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -52051,23 +52020,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -52099,6 +52056,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -52234,23 +52203,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -52282,6 +52239,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCreateResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCreateResponse.kt index a4ae297b..e011b623 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCreateResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCreateResponse.kt @@ -1441,22 +1441,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1483,6 +1470,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1747,23 +1746,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1790,6 +1775,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2049,22 +2046,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2091,6 +2075,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2369,21 +2365,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2410,6 +2394,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2669,21 +2665,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2710,6 +2694,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3301,21 +3297,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3342,6 +3326,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3565,21 +3561,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3606,6 +3590,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3834,21 +3830,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3875,6 +3859,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5986,25 +5982,13 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val ENDED = Status(JsonField.of("ended")) + @JvmField val ENDED = of("ended") - @JvmField val UPCOMING = Status(JsonField.of("upcoming")) + @JvmField val UPCOMING = of("upcoming") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -6039,6 +6023,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TrialInfo.Builder::class) diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchCostsParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchCostsParams.kt index 6fa265a5..4561da61 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchCostsParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchCostsParams.kt @@ -5,12 +5,10 @@ package com.withorb.api.models import com.fasterxml.jackson.annotation.JsonCreator import com.withorb.api.core.Enum import com.withorb.api.core.JsonField -import com.withorb.api.core.JsonValue import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.OffsetDateTime import java.time.format.DateTimeFormatter import java.util.Objects @@ -238,23 +236,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ViewMode && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERIODIC = ViewMode(JsonField.of("periodic")) + @JvmField val PERIODIC = of("periodic") - @JvmField val CUMULATIVE = ViewMode(JsonField.of("cumulative")) + @JvmField val CUMULATIVE = of("cumulative") @JvmStatic fun of(value: String) = ViewMode(JsonField.of(value)) } @@ -285,6 +271,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ViewMode && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchParams.kt index e3e8da3c..05cd1a6a 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class SubscriptionFetchParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchScheduleParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchScheduleParams.kt index 50b0b6da..6caf711c 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchScheduleParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchScheduleParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import java.time.format.DateTimeFormatter import java.util.Objects diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchUsageParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchUsageParams.kt index 5e1e9d02..b47bedd2 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchUsageParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchUsageParams.kt @@ -5,12 +5,10 @@ package com.withorb.api.models import com.fasterxml.jackson.annotation.JsonCreator import com.withorb.api.core.Enum import com.withorb.api.core.JsonField -import com.withorb.api.core.JsonValue import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.OffsetDateTime import java.time.format.DateTimeFormatter import java.util.Objects @@ -316,21 +314,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Granularity && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = Granularity(JsonField.of("day")) + @JvmField val DAY = of("day") @JvmStatic fun of(value: String) = Granularity(JsonField.of(value)) } @@ -357,33 +343,33 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ViewMode - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ViewMode && value == other.value /* spotless:on */ + return /* spotless:off */ other is Granularity && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ViewMode + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { - @JvmField val PERIODIC = ViewMode(JsonField.of("periodic")) + @JvmField val PERIODIC = of("periodic") - @JvmField val CUMULATIVE = ViewMode(JsonField.of("cumulative")) + @JvmField val CUMULATIVE = of("cumulative") @JvmStatic fun of(value: String) = ViewMode(JsonField.of(value)) } @@ -414,6 +400,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ViewMode && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListParams.kt index 6a32a833..80cf559b 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListParams.kt @@ -5,13 +5,11 @@ package com.withorb.api.models import com.fasterxml.jackson.annotation.JsonCreator import com.withorb.api.core.Enum import com.withorb.api.core.JsonField -import com.withorb.api.core.JsonValue import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.OffsetDateTime import java.time.format.DateTimeFormatter import java.util.Objects @@ -283,25 +281,13 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val ENDED = Status(JsonField.of("ended")) + @JvmField val ENDED = of("ended") - @JvmField val UPCOMING = Status(JsonField.of("upcoming")) + @JvmField val UPCOMING = of("upcoming") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -336,6 +322,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsParams.kt index 9e1eb37e..d6e4d185 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsParams.kt @@ -26,7 +26,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.OffsetDateTime import java.util.Objects import java.util.Optional @@ -835,31 +834,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -906,6 +893,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1226,21 +1225,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -1267,6 +1254,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1410,21 +1409,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -1451,6 +1438,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1589,21 +1588,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -1630,6 +1617,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3437,31 +3436,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -3508,32 +3495,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val UNIT = ModelType(JsonField.of("unit")) + @JvmField val UNIT = of("unit") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -3560,6 +3547,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitConfig.Builder::class) @@ -3769,23 +3768,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -3817,6 +3804,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3952,23 +3951,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -4000,6 +3987,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -4601,31 +4600,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -4672,32 +4659,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val PACKAGE = ModelType(JsonField.of("package")) + @JvmField val PACKAGE = of("package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -4724,6 +4711,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageConfig.Builder::class) @@ -4972,23 +4971,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -5020,6 +5007,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5155,23 +5154,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -5203,6 +5190,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5804,31 +5803,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -5875,6 +5862,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = MatrixConfig.Builder::class) @@ -6183,21 +6182,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MATRIX = ModelType(JsonField.of("matrix")) + @JvmField val MATRIX = of("matrix") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -6224,6 +6211,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -6340,23 +6339,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -6388,6 +6375,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6523,23 +6522,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -6571,6 +6558,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -7185,31 +7184,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -7256,6 +7243,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = MatrixWithAllocationConfig.Builder::class) @@ -7589,23 +7588,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val MATRIX_WITH_ALLOCATION = - ModelType(JsonField.of("matrix_with_allocation")) + @JvmField val MATRIX_WITH_ALLOCATION = of("matrix_with_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -7632,6 +7617,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -7748,23 +7745,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -7796,6 +7781,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -7931,23 +7928,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -7979,6 +7964,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -8580,31 +8577,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -8651,32 +8636,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val TIERED = ModelType(JsonField.of("tiered")) + @JvmField val TIERED = of("tiered") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -8703,6 +8688,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredConfig.Builder::class) @@ -9067,23 +9064,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -9115,6 +9100,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -9250,23 +9247,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -9298,6 +9283,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -9903,31 +9900,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -9974,32 +9959,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val TIERED_BPS = ModelType(JsonField.of("tiered_bps")) + @JvmField val TIERED_BPS = of("tiered_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -10026,6 +10011,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredBpsConfig.Builder::class) @@ -10416,6 +10413,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -10427,12 +10461,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -10464,140 +10632,6 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ - } - - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode - - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" - } - - /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. - */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) - @NoAutoDetect - class InvoicingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): InvoicingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { @@ -10610,43 +10644,6 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() } override fun equals(other: Any?): Boolean { @@ -11366,31 +11363,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -11437,32 +11422,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val BPS = ModelType(JsonField.of("bps")) + @JvmField val BPS = of("bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -11489,6 +11474,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -11605,23 +11602,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -11653,6 +11638,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -11788,23 +11785,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -11836,6 +11821,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -12689,31 +12686,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -12760,32 +12745,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val BULK_BPS = ModelType(JsonField.of("bulk_bps")) + @JvmField val BULK_BPS = of("bulk_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -12812,6 +12797,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -12928,23 +12925,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -12976,6 +12961,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -13111,23 +13108,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -13159,6 +13144,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -13975,31 +13972,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -14046,32 +14031,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val BULK = ModelType(JsonField.of("bulk")) + @JvmField val BULK = of("bulk") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -14098,6 +14083,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -14214,23 +14211,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -14262,6 +14247,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -14397,23 +14394,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -14445,6 +14430,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -15059,31 +15056,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -15130,34 +15115,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val THRESHOLD_TOTAL_AMOUNT = - ModelType(JsonField.of("threshold_total_amount")) + @JvmField val THRESHOLD_TOTAL_AMOUNT = of("threshold_total_amount") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -15184,6 +15167,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = ThresholdTotalAmountConfig.Builder::class) @@ -15376,23 +15371,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -15424,6 +15407,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -15559,23 +15554,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -15607,6 +15590,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -16215,31 +16210,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -16286,32 +16269,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val TIERED_PACKAGE = ModelType(JsonField.of("tiered_package")) + @JvmField val TIERED_PACKAGE = of("tiered_package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -16338,6 +16321,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredPackageConfig.Builder::class) @@ -16527,23 +16522,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -16575,6 +16558,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -16710,23 +16705,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -16758,6 +16741,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -17366,31 +17361,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -17437,6 +17420,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedTieredConfig.Builder::class) @@ -17521,21 +17516,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val GROUPED_TIERED = ModelType(JsonField.of("grouped_tiered")) + @JvmField val GROUPED_TIERED = of("grouped_tiered") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -17562,6 +17545,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -17678,23 +17673,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -17726,6 +17709,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -17861,23 +17856,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -17909,6 +17892,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -18519,31 +18514,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -18590,33 +18573,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val TIERED_WITH_MINIMUM = ModelType(JsonField.of("tiered_with_minimum")) + @JvmField val TIERED_WITH_MINIMUM = of("tiered_with_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -18643,6 +18625,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithMinimumConfig.Builder::class) @@ -18833,23 +18827,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -18881,6 +18863,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -19016,23 +19010,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -19064,6 +19046,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -19679,31 +19673,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -19750,34 +19732,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val PACKAGE_WITH_ALLOCATION = - ModelType(JsonField.of("package_with_allocation")) + @JvmField val PACKAGE_WITH_ALLOCATION = of("package_with_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -19804,6 +19784,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageWithAllocationConfig.Builder::class) @@ -19995,6 +19987,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -20006,12 +20035,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -20043,140 +20206,6 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ - } - - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode - - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" - } - - /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. - */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) - @NoAutoDetect - class InvoicingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): InvoicingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { @@ -20189,43 +20218,6 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() } override fun equals(other: Any?): Boolean { @@ -20848,31 +20840,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -20919,34 +20899,33 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { @JvmField - val TIERED_PACKAGE_WITH_MINIMUM = - ModelType(JsonField.of("tiered_package_with_minimum")) + val TIERED_PACKAGE_WITH_MINIMUM = of("tiered_package_with_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -20973,6 +20952,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredPackageWithMinimumConfig.Builder::class) @@ -21166,23 +21157,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -21214,6 +21193,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -21349,23 +21340,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -21397,6 +21376,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -22005,31 +21996,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -22076,33 +22055,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val UNIT_WITH_PERCENT = ModelType(JsonField.of("unit_with_percent")) + @JvmField val UNIT_WITH_PERCENT = of("unit_with_percent") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -22129,6 +22107,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithPercentConfig.Builder::class) @@ -22318,23 +22308,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -22366,6 +22344,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -22501,23 +22491,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -22549,6 +22527,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -23162,31 +23152,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -23233,33 +23211,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val TIERED_WITH_PRORATION = ModelType(JsonField.of("tiered_with_proration")) + @JvmField val TIERED_WITH_PRORATION = of("tiered_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -23286,6 +23263,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithProrationConfig.Builder::class) @@ -23476,23 +23465,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -23524,6 +23501,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -23659,23 +23648,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -23707,6 +23684,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -24317,31 +24306,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -24388,33 +24365,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val UNIT_WITH_PRORATION = ModelType(JsonField.of("unit_with_proration")) + @JvmField val UNIT_WITH_PRORATION = of("unit_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -24441,6 +24417,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithProrationConfig.Builder::class) @@ -24631,23 +24619,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -24679,6 +24655,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -24814,23 +24802,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -24862,6 +24838,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -25472,31 +25460,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -25543,6 +25519,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedAllocationConfig.Builder::class) @@ -25628,22 +25616,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val GROUPED_ALLOCATION = ModelType(JsonField.of("grouped_allocation")) + @JvmField val GROUPED_ALLOCATION = of("grouped_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -25670,6 +25645,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -25786,23 +25773,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -25834,6 +25809,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -25969,23 +25956,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -26017,6 +25992,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -26646,31 +26633,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -26717,6 +26692,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedWithProratedMinimumConfig.Builder::class) @@ -26805,23 +26792,10 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField - val GROUPED_WITH_PRORATED_MINIMUM = - ModelType(JsonField.of("grouped_with_prorated_minimum")) + val GROUPED_WITH_PRORATED_MINIMUM = of("grouped_with_prorated_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -26848,6 +26822,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -26964,23 +26950,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -27012,6 +26986,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -27147,23 +27133,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -27195,6 +27169,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -27823,31 +27809,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -27894,6 +27868,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedWithMeteredMinimumConfig.Builder::class) @@ -27982,23 +27968,10 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField - val GROUPED_WITH_METERED_MINIMUM = - ModelType(JsonField.of("grouped_with_metered_minimum")) + val GROUPED_WITH_METERED_MINIMUM = of("grouped_with_metered_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -28025,6 +27998,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -28141,23 +28126,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -28189,6 +28162,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -28324,23 +28309,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -28372,6 +28345,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -28987,31 +28972,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -29058,6 +29031,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = MatrixWithDisplayNameConfig.Builder::class) @@ -29144,23 +29129,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val MATRIX_WITH_DISPLAY_NAME = - ModelType(JsonField.of("matrix_with_display_name")) + @JvmField val MATRIX_WITH_DISPLAY_NAME = of("matrix_with_display_name") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -29187,6 +29158,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -29303,23 +29286,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -29351,6 +29322,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -29486,23 +29469,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -29534,6 +29505,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -30218,31 +30201,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -30289,33 +30260,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val BULK_WITH_PRORATION = ModelType(JsonField.of("bulk_with_proration")) + @JvmField val BULK_WITH_PRORATION = of("bulk_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -30342,6 +30312,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -30458,23 +30440,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -30506,6 +30476,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -30641,23 +30623,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -30689,6 +30659,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -31303,31 +31285,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -31374,6 +31344,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedTieredPackageConfig.Builder::class) @@ -31461,23 +31443,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val GROUPED_TIERED_PACKAGE = - ModelType(JsonField.of("grouped_tiered_package")) + @JvmField val GROUPED_TIERED_PACKAGE = of("grouped_tiered_package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -31504,6 +31472,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -31620,23 +31600,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -31668,6 +31636,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -31803,23 +31783,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -31851,6 +31819,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -32460,23 +32440,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -32503,6 +32469,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -32688,22 +32666,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -32730,6 +32695,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -32917,22 +32894,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -32959,6 +32923,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -33163,21 +33139,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -33204,6 +33168,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -33389,21 +33365,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -33430,6 +33394,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsResponse.kt index 72bc86a5..bef43371 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsResponse.kt @@ -1443,22 +1443,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1485,6 +1472,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1749,23 +1748,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1792,6 +1777,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2051,22 +2048,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2093,6 +2077,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2371,21 +2367,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2412,6 +2396,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2671,21 +2667,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2712,6 +2696,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3303,21 +3299,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3344,6 +3328,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3567,21 +3563,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3608,6 +3592,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3836,21 +3832,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3877,6 +3861,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5988,25 +5984,13 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val ENDED = Status(JsonField.of("ended")) + @JvmField val ENDED = of("ended") - @JvmField val UPCOMING = Status(JsonField.of("upcoming")) + @JvmField val UPCOMING = of("upcoming") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -6041,6 +6025,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TrialInfo.Builder::class) diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeParams.kt index b5916478..cddab017 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeParams.kt @@ -26,7 +26,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.OffsetDateTime import java.util.Objects import java.util.Optional @@ -1166,26 +1165,13 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ChangeOption && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val REQUESTED_DATE = ChangeOption(JsonField.of("requested_date")) + @JvmField val REQUESTED_DATE = of("requested_date") - @JvmField - val END_OF_SUBSCRIPTION_TERM = ChangeOption(JsonField.of("end_of_subscription_term")) + @JvmField val END_OF_SUBSCRIPTION_TERM = of("end_of_subscription_term") - @JvmField val IMMEDIATE = ChangeOption(JsonField.of("immediate")) + @JvmField val IMMEDIATE = of("immediate") @JvmStatic fun of(value: String) = ChangeOption(JsonField.of(value)) } @@ -1220,6 +1206,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ChangeOption && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = AddAdjustment.Builder::class) @@ -1715,23 +1713,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1758,6 +1742,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1943,22 +1939,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1985,6 +1968,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2172,22 +2167,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2214,6 +2196,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2418,21 +2412,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2459,6 +2441,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2644,21 +2638,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2685,6 +2667,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3021,25 +3015,13 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3074,6 +3056,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -4495,31 +4489,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -4566,32 +4548,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val UNIT = ModelType(JsonField.of("unit")) + @JvmField val UNIT = of("unit") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -4618,6 +4600,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitConfig.Builder::class) @@ -4827,23 +4821,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -4875,6 +4857,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5010,23 +5004,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -5058,6 +5040,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5707,31 +5701,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -5778,32 +5760,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val PACKAGE = ModelType(JsonField.of("package")) + @JvmField val PACKAGE = of("package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -5830,6 +5812,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageConfig.Builder::class) @@ -6078,23 +6072,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -6126,6 +6108,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6261,23 +6255,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -6309,6 +6291,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6958,31 +6952,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -7029,6 +7011,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = MatrixConfig.Builder::class) @@ -7337,21 +7331,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MATRIX = ModelType(JsonField.of("matrix")) + @JvmField val MATRIX = of("matrix") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -7378,6 +7360,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -7494,23 +7488,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -7542,6 +7524,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -7677,23 +7671,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -7725,6 +7707,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -8374,31 +8368,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -8445,32 +8427,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val TIERED = ModelType(JsonField.of("tiered")) + @JvmField val TIERED = of("tiered") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -8497,6 +8479,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredConfig.Builder::class) @@ -8861,23 +8855,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -8909,6 +8891,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -9044,23 +9038,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -9092,6 +9074,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -9745,31 +9739,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -9816,32 +9798,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val TIERED_BPS = ModelType(JsonField.of("tiered_bps")) + @JvmField val TIERED_BPS = of("tiered_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -9868,6 +9850,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredBpsConfig.Builder::class) @@ -10258,23 +10252,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -10306,6 +10288,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -10441,23 +10435,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -10489,6 +10471,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -11255,31 +11249,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -11326,32 +11308,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val BPS = ModelType(JsonField.of("bps")) + @JvmField val BPS = of("bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -11378,6 +11360,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -11494,23 +11488,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -11542,6 +11524,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -11677,23 +11671,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -11725,6 +11707,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -12626,31 +12620,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -12697,32 +12679,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val BULK_BPS = ModelType(JsonField.of("bulk_bps")) + @JvmField val BULK_BPS = of("bulk_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -12749,6 +12731,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -12865,23 +12859,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -12913,6 +12895,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -13048,23 +13042,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -13096,6 +13078,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -13959,31 +13953,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -14030,32 +14012,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val BULK = ModelType(JsonField.of("bulk")) + @JvmField val BULK = of("bulk") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -14082,197 +14064,27 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - /** - * For custom cadence: specifies the duration of the billing period in days or - * months. - */ - @JsonDeserialize(builder = BillingCycleConfiguration.Builder::class) - @NoAutoDetect - class BillingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): BillingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = - apply { - this.duration = billingCycleConfiguration.duration - this.durationUnit = billingCycleConfiguration.durationUnit - additionalProperties(billingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): BillingCycleConfiguration = - BillingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() - } override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode + override fun hashCode() = value.hashCode() - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + override fun toString() = value.toString() } /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. + * For custom cadence: specifies the duration of the billing period in days or + * months. */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @JsonDeserialize(builder = BillingCycleConfiguration.Builder::class) @NoAutoDetect - class InvoicingCycleConfiguration + class BillingCycleConfiguration private constructor( private val duration: JsonField, private val durationUnit: JsonField, @@ -14299,7 +14111,7 @@ constructor( @ExcludeMissing fun _additionalProperties(): Map = additionalProperties - fun validate(): InvoicingCycleConfiguration = apply { + fun validate(): BillingCycleConfiguration = apply { if (!validated) { duration() durationUnit() @@ -14322,13 +14134,12 @@ constructor( mutableMapOf() @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } + internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = + apply { + this.duration = billingCycleConfiguration.duration + this.durationUnit = billingCycleConfiguration.durationUnit + additionalProperties(billingCycleConfiguration.additionalProperties) + } /** The duration of the billing period. */ fun duration(duration: Long) = duration(JsonField.of(duration)) @@ -14364,8 +14175,8 @@ constructor( additionalProperties: Map ) = apply { this.additionalProperties.putAll(additionalProperties) } - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( + fun build(): BillingCycleConfiguration = + BillingCycleConfiguration( duration, durationUnit, additionalProperties.toImmutable(), @@ -14381,6 +14192,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -14392,12 +14240,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -14429,6 +14411,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -15094,31 +15088,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -15165,34 +15147,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val THRESHOLD_TOTAL_AMOUNT = - ModelType(JsonField.of("threshold_total_amount")) + @JvmField val THRESHOLD_TOTAL_AMOUNT = of("threshold_total_amount") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -15219,6 +15199,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = ThresholdTotalAmountConfig.Builder::class) @@ -15411,23 +15403,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -15459,6 +15439,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -15594,23 +15586,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -15642,6 +15622,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -16300,31 +16292,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -16371,32 +16351,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val TIERED_PACKAGE = ModelType(JsonField.of("tiered_package")) + @JvmField val TIERED_PACKAGE = of("tiered_package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -16423,6 +16403,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredPackageConfig.Builder::class) @@ -16554,195 +16546,12 @@ constructor( mutableMapOf() @JvmSynthetic - internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = - apply { - this.duration = billingCycleConfiguration.duration - this.durationUnit = billingCycleConfiguration.durationUnit - additionalProperties(billingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): BillingCycleConfiguration = - BillingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() - } - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ - } - - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode - - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" - } - - /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. - */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) - @NoAutoDetect - class InvoicingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): InvoicingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } + internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = + apply { + this.duration = billingCycleConfiguration.duration + this.durationUnit = billingCycleConfiguration.durationUnit + additionalProperties(billingCycleConfiguration.additionalProperties) + } /** The duration of the billing period. */ fun duration(duration: Long) = duration(JsonField.of(duration)) @@ -16778,8 +16587,8 @@ constructor( additionalProperties: Map ) = apply { this.additionalProperties.putAll(additionalProperties) } - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( + fun build(): BillingCycleConfiguration = + BillingCycleConfiguration( duration, durationUnit, additionalProperties.toImmutable(), @@ -16795,6 +16604,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -16806,12 +16652,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -16843,6 +16823,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -17503,31 +17495,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -17574,33 +17554,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val TIERED_WITH_MINIMUM = ModelType(JsonField.of("tiered_with_minimum")) + @JvmField val TIERED_WITH_MINIMUM = of("tiered_with_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -17627,6 +17606,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithMinimumConfig.Builder::class) @@ -17817,23 +17808,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -17865,6 +17844,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -18000,23 +17991,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -18048,6 +18027,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -18707,31 +18698,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -18778,33 +18757,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val UNIT_WITH_PERCENT = ModelType(JsonField.of("unit_with_percent")) + @JvmField val UNIT_WITH_PERCENT = of("unit_with_percent") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -18831,6 +18809,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithPercentConfig.Builder::class) @@ -18962,195 +18952,12 @@ constructor( mutableMapOf() @JvmSynthetic - internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = - apply { - this.duration = billingCycleConfiguration.duration - this.durationUnit = billingCycleConfiguration.durationUnit - additionalProperties(billingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): BillingCycleConfiguration = - BillingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() - } - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ - } - - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode - - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" - } - - /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. - */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) - @NoAutoDetect - class InvoicingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): InvoicingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } + internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = + apply { + this.duration = billingCycleConfiguration.duration + this.durationUnit = billingCycleConfiguration.durationUnit + additionalProperties(billingCycleConfiguration.additionalProperties) + } /** The duration of the billing period. */ fun duration(duration: Long) = duration(JsonField.of(duration)) @@ -19186,8 +18993,8 @@ constructor( additionalProperties: Map ) = apply { this.additionalProperties.putAll(additionalProperties) } - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( + fun build(): BillingCycleConfiguration = + BillingCycleConfiguration( duration, durationUnit, additionalProperties.toImmutable(), @@ -19203,6 +19010,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -19214,12 +19058,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -19251,6 +19229,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -19917,31 +19907,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -19988,34 +19966,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val PACKAGE_WITH_ALLOCATION = - ModelType(JsonField.of("package_with_allocation")) + @JvmField val PACKAGE_WITH_ALLOCATION = of("package_with_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -20042,6 +20018,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageWithAllocationConfig.Builder::class) @@ -20233,23 +20221,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -20281,6 +20257,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -20416,23 +20404,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -20464,6 +20440,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -21125,31 +21113,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -21196,33 +21172,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val TIERED_WITH_PRORATION = ModelType(JsonField.of("tiered_with_proration")) + @JvmField val TIERED_WITH_PRORATION = of("tiered_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -21249,6 +21224,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithProrationConfig.Builder::class) @@ -21381,195 +21368,12 @@ constructor( mutableMapOf() @JvmSynthetic - internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = - apply { - this.duration = billingCycleConfiguration.duration - this.durationUnit = billingCycleConfiguration.durationUnit - additionalProperties(billingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): BillingCycleConfiguration = - BillingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() - } - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ - } - - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode - - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" - } - - /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. - */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) - @NoAutoDetect - class InvoicingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): InvoicingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } + internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = + apply { + this.duration = billingCycleConfiguration.duration + this.durationUnit = billingCycleConfiguration.durationUnit + additionalProperties(billingCycleConfiguration.additionalProperties) + } /** The duration of the billing period. */ fun duration(duration: Long) = duration(JsonField.of(duration)) @@ -21605,8 +21409,8 @@ constructor( additionalProperties: Map ) = apply { this.additionalProperties.putAll(additionalProperties) } - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( + fun build(): BillingCycleConfiguration = + BillingCycleConfiguration( duration, durationUnit, additionalProperties.toImmutable(), @@ -21622,6 +21426,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -21633,12 +21474,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -21670,6 +21645,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -22330,31 +22317,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -22401,33 +22376,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val UNIT_WITH_PRORATION = ModelType(JsonField.of("unit_with_proration")) + @JvmField val UNIT_WITH_PRORATION = of("unit_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -22454,6 +22428,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithProrationConfig.Builder::class) @@ -22644,23 +22630,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -22692,6 +22666,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -22827,23 +22813,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -22875,6 +22849,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -23535,31 +23521,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -23606,6 +23580,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedAllocationConfig.Builder::class) @@ -23691,22 +23677,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val GROUPED_ALLOCATION = ModelType(JsonField.of("grouped_allocation")) + @JvmField val GROUPED_ALLOCATION = of("grouped_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -23733,197 +23706,27 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - /** - * For custom cadence: specifies the duration of the billing period in days or - * months. - */ - @JsonDeserialize(builder = BillingCycleConfiguration.Builder::class) - @NoAutoDetect - class BillingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): BillingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = - apply { - this.duration = billingCycleConfiguration.duration - this.durationUnit = billingCycleConfiguration.durationUnit - additionalProperties(billingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): BillingCycleConfiguration = - BillingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() - } override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ } - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode + override fun hashCode() = value.hashCode() - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + override fun toString() = value.toString() } /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. + * For custom cadence: specifies the duration of the billing period in days or + * months. */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @JsonDeserialize(builder = BillingCycleConfiguration.Builder::class) @NoAutoDetect - class InvoicingCycleConfiguration + class BillingCycleConfiguration private constructor( private val duration: JsonField, private val durationUnit: JsonField, @@ -23950,7 +23753,7 @@ constructor( @ExcludeMissing fun _additionalProperties(): Map = additionalProperties - fun validate(): InvoicingCycleConfiguration = apply { + fun validate(): BillingCycleConfiguration = apply { if (!validated) { duration() durationUnit() @@ -23973,13 +23776,12 @@ constructor( mutableMapOf() @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } + internal fun from(billingCycleConfiguration: BillingCycleConfiguration) = + apply { + this.duration = billingCycleConfiguration.duration + this.durationUnit = billingCycleConfiguration.durationUnit + additionalProperties(billingCycleConfiguration.additionalProperties) + } /** The duration of the billing period. */ fun duration(duration: Long) = duration(JsonField.of(duration)) @@ -24015,8 +23817,8 @@ constructor( additionalProperties: Map ) = apply { this.additionalProperties.putAll(additionalProperties) } - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( + fun build(): BillingCycleConfiguration = + BillingCycleConfiguration( duration, durationUnit, additionalProperties.toImmutable(), @@ -24032,6 +23834,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -24043,12 +23882,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -24080,6 +24053,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -24760,31 +24745,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -24831,6 +24804,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedWithProratedMinimumConfig.Builder::class) @@ -24919,23 +24904,10 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField - val GROUPED_WITH_PRORATED_MINIMUM = - ModelType(JsonField.of("grouped_with_prorated_minimum")) + val GROUPED_WITH_PRORATED_MINIMUM = of("grouped_with_prorated_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -24962,6 +24934,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -25078,23 +25062,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -25126,6 +25098,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -25261,23 +25245,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -25309,6 +25281,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -26043,31 +26027,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -26114,33 +26086,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val BULK_WITH_PRORATION = ModelType(JsonField.of("bulk_with_proration")) + @JvmField val BULK_WITH_PRORATION = of("bulk_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -26167,6 +26138,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -26266,191 +26249,8 @@ constructor( additionalProperties: Map ) = apply { this.additionalProperties.putAll(additionalProperties) } - fun build(): BillingCycleConfiguration = - BillingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() - } - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ - } - - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode - - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" - } - - /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. - */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) - @NoAutoDetect - class InvoicingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): InvoicingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( + fun build(): BillingCycleConfiguration = + BillingCycleConfiguration( duration, durationUnit, additionalProperties.toImmutable(), @@ -26466,6 +26266,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -26477,12 +26314,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -26514,6 +26485,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -26655,25 +26638,13 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BillingCycleAlignment && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val UNCHANGED = BillingCycleAlignment(JsonField.of("unchanged")) + @JvmField val UNCHANGED = of("unchanged") - @JvmField val PLAN_CHANGE_DATE = BillingCycleAlignment(JsonField.of("plan_change_date")) + @JvmField val PLAN_CHANGE_DATE = of("plan_change_date") - @JvmField val START_OF_MONTH = BillingCycleAlignment(JsonField.of("start_of_month")) + @JvmField val START_OF_MONTH = of("start_of_month") @JvmStatic fun of(value: String) = BillingCycleAlignment(JsonField.of(value)) } @@ -26708,6 +26679,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleAlignment && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = BillingCycleAnchorConfiguration.Builder::class) @@ -27451,23 +27434,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -27494,6 +27463,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -27679,22 +27660,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -27721,6 +27689,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -27908,22 +27888,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -27950,6 +27917,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -28154,21 +28133,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -28195,6 +28162,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -28380,21 +28359,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -28421,6 +28388,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -28738,25 +28717,13 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -28791,6 +28758,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -30212,31 +30191,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -30283,32 +30250,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val UNIT = ModelType(JsonField.of("unit")) + @JvmField val UNIT = of("unit") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -30335,6 +30302,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitConfig.Builder::class) @@ -30544,23 +30523,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -30592,6 +30559,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -30727,23 +30706,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -30775,6 +30742,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -31424,31 +31403,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -31495,32 +31462,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val PACKAGE = ModelType(JsonField.of("package")) + @JvmField val PACKAGE = of("package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -31547,6 +31514,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageConfig.Builder::class) @@ -31795,23 +31774,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -31843,6 +31810,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -31978,23 +31957,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -32026,6 +31993,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -32675,31 +32654,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -32746,6 +32713,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = MatrixConfig.Builder::class) @@ -33054,21 +33033,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MATRIX = ModelType(JsonField.of("matrix")) + @JvmField val MATRIX = of("matrix") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -33095,6 +33062,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -33211,23 +33190,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -33259,6 +33226,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -33394,23 +33373,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -33442,6 +33409,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -34091,31 +34070,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -34162,32 +34129,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val TIERED = ModelType(JsonField.of("tiered")) + @JvmField val TIERED = of("tiered") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -34214,6 +34181,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredConfig.Builder::class) @@ -34578,23 +34557,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -34626,6 +34593,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -34761,23 +34740,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -34809,6 +34776,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -35462,31 +35441,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -35533,32 +35500,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val TIERED_BPS = ModelType(JsonField.of("tiered_bps")) + @JvmField val TIERED_BPS = of("tiered_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -35585,6 +35552,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredBpsConfig.Builder::class) @@ -35975,23 +35954,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -36023,6 +35990,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -36158,23 +36137,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -36206,6 +36173,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -36972,31 +36951,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -37043,32 +37010,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val BPS = ModelType(JsonField.of("bps")) + @JvmField val BPS = of("bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -37095,6 +37062,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -37211,6 +37190,43 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + companion object { + + @JvmField val DAY = of("day") + + @JvmField val MONTH = of("month") + + @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) + } + + enum class Known { + DAY, + MONTH, + } + + enum class Value { + DAY, + MONTH, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + DAY -> Value.DAY + MONTH -> Value.MONTH + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + DAY -> Known.DAY + MONTH -> Known.MONTH + else -> + throw OrbInvalidDataException("Unknown DurationUnit: $value") + } + + fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -37222,12 +37238,146 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ + } + + /* spotless:off */ + private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } + /* spotless:on */ + + override fun hashCode(): Int = hashCode + + override fun toString() = + "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" + } + + /** + * Within each billing cycle, specifies the cadence at which invoices are produced. + * If unspecified, a single invoice is produced per billing cycle. + */ + @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) + @NoAutoDetect + class InvoicingCycleConfiguration + private constructor( + private val duration: JsonField, + private val durationUnit: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** The duration of the billing period. */ + fun duration(): Long = duration.getRequired("duration") + + /** The unit of billing period duration. */ + fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") + + /** The duration of the billing period. */ + @JsonProperty("duration") @ExcludeMissing fun _duration() = duration + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun _durationUnit() = durationUnit + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): InvoicingCycleConfiguration = apply { + if (!validated) { + duration() + durationUnit() + validated = true + } + } + + fun toBuilder() = Builder().from(this) + + companion object { + + @JvmStatic fun builder() = Builder() + } + + class Builder { + + private var duration: JsonField = JsonMissing.of() + private var durationUnit: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from( + invoicingCycleConfiguration: InvoicingCycleConfiguration + ) = apply { + this.duration = invoicingCycleConfiguration.duration + this.durationUnit = invoicingCycleConfiguration.durationUnit + additionalProperties(invoicingCycleConfiguration.additionalProperties) + } + + /** The duration of the billing period. */ + fun duration(duration: Long) = duration(JsonField.of(duration)) + + /** The duration of the billing period. */ + @JsonProperty("duration") + @ExcludeMissing + fun duration(duration: JsonField) = apply { this.duration = duration } + + /** The unit of billing period duration. */ + fun durationUnit(durationUnit: DurationUnit) = + durationUnit(JsonField.of(durationUnit)) + + /** The unit of billing period duration. */ + @JsonProperty("duration_unit") + @ExcludeMissing + fun durationUnit(durationUnit: JsonField) = apply { + this.durationUnit = durationUnit + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + this.additionalProperties.putAll(additionalProperties) + } + + @JsonAnySetter + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + this.additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun build(): InvoicingCycleConfiguration = + InvoicingCycleConfiguration( + duration, + durationUnit, + additionalProperties.toImmutable(), + ) + } + + class DurationUnit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -37259,140 +37409,6 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BillingCycleConfiguration && duration == other.duration && durationUnit == other.durationUnit && additionalProperties == other.additionalProperties /* spotless:on */ - } - - /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(duration, durationUnit, additionalProperties) } - /* spotless:on */ - - override fun hashCode(): Int = hashCode - - override fun toString() = - "BillingCycleConfiguration{duration=$duration, durationUnit=$durationUnit, additionalProperties=$additionalProperties}" - } - - /** - * Within each billing cycle, specifies the cadence at which invoices are produced. - * If unspecified, a single invoice is produced per billing cycle. - */ - @JsonDeserialize(builder = InvoicingCycleConfiguration.Builder::class) - @NoAutoDetect - class InvoicingCycleConfiguration - private constructor( - private val duration: JsonField, - private val durationUnit: JsonField, - private val additionalProperties: Map, - ) { - - private var validated: Boolean = false - - /** The duration of the billing period. */ - fun duration(): Long = duration.getRequired("duration") - - /** The unit of billing period duration. */ - fun durationUnit(): DurationUnit = durationUnit.getRequired("duration_unit") - - /** The duration of the billing period. */ - @JsonProperty("duration") @ExcludeMissing fun _duration() = duration - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun _durationUnit() = durationUnit - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): InvoicingCycleConfiguration = apply { - if (!validated) { - duration() - durationUnit() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { - - private var duration: JsonField = JsonMissing.of() - private var durationUnit: JsonField = JsonMissing.of() - private var additionalProperties: MutableMap = - mutableMapOf() - - @JvmSynthetic - internal fun from( - invoicingCycleConfiguration: InvoicingCycleConfiguration - ) = apply { - this.duration = invoicingCycleConfiguration.duration - this.durationUnit = invoicingCycleConfiguration.durationUnit - additionalProperties(invoicingCycleConfiguration.additionalProperties) - } - - /** The duration of the billing period. */ - fun duration(duration: Long) = duration(JsonField.of(duration)) - - /** The duration of the billing period. */ - @JsonProperty("duration") - @ExcludeMissing - fun duration(duration: JsonField) = apply { this.duration = duration } - - /** The unit of billing period duration. */ - fun durationUnit(durationUnit: DurationUnit) = - durationUnit(JsonField.of(durationUnit)) - - /** The unit of billing period duration. */ - @JsonProperty("duration_unit") - @ExcludeMissing - fun durationUnit(durationUnit: JsonField) = apply { - this.durationUnit = durationUnit - } - - fun additionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.clear() - this.additionalProperties.putAll(additionalProperties) - } - - @JsonAnySetter - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - this.additionalProperties.put(key, value) - } - - fun putAllAdditionalProperties( - additionalProperties: Map - ) = apply { this.additionalProperties.putAll(additionalProperties) } - - fun build(): InvoicingCycleConfiguration = - InvoicingCycleConfiguration( - duration, - durationUnit, - additionalProperties.toImmutable(), - ) - } - - class DurationUnit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { @@ -37405,43 +37421,6 @@ constructor( override fun hashCode() = value.hashCode() override fun toString() = value.toString() - - companion object { - - @JvmField val DAY = DurationUnit(JsonField.of("day")) - - @JvmField val MONTH = DurationUnit(JsonField.of("month")) - - @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) - } - - enum class Known { - DAY, - MONTH, - } - - enum class Value { - DAY, - MONTH, - _UNKNOWN, - } - - fun value(): Value = - when (this) { - DAY -> Value.DAY - MONTH -> Value.MONTH - else -> Value._UNKNOWN - } - - fun known(): Known = - when (this) { - DAY -> Known.DAY - MONTH -> Known.MONTH - else -> - throw OrbInvalidDataException("Unknown DurationUnit: $value") - } - - fun asString(): String = _value().asStringOrThrow() } override fun equals(other: Any?): Boolean { @@ -38343,31 +38322,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -38414,32 +38381,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val BULK_BPS = ModelType(JsonField.of("bulk_bps")) + @JvmField val BULK_BPS = of("bulk_bps") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -38466,6 +38433,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -38582,23 +38561,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -38630,6 +38597,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -38765,23 +38744,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -38813,6 +38780,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -39676,31 +39655,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -39747,32 +39714,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val BULK = ModelType(JsonField.of("bulk")) + @JvmField val BULK = of("bulk") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -39799,6 +39766,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -39915,23 +39894,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -39963,6 +39930,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -40098,23 +40077,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -40146,6 +40113,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -40811,31 +40790,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -40882,34 +40849,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val THRESHOLD_TOTAL_AMOUNT = - ModelType(JsonField.of("threshold_total_amount")) + @JvmField val THRESHOLD_TOTAL_AMOUNT = of("threshold_total_amount") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -40936,6 +40901,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = ThresholdTotalAmountConfig.Builder::class) @@ -41128,23 +41105,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -41176,6 +41141,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -41311,23 +41288,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -41359,6 +41324,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -42017,31 +41994,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -42088,32 +42053,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField val TIERED_PACKAGE = ModelType(JsonField.of("tiered_package")) + @JvmField val TIERED_PACKAGE = of("tiered_package") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -42140,6 +42105,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredPackageConfig.Builder::class) @@ -42329,23 +42306,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -42377,6 +42342,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -42512,23 +42489,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -42560,6 +42525,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -43220,31 +43197,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -43291,33 +43256,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val TIERED_WITH_MINIMUM = ModelType(JsonField.of("tiered_with_minimum")) + @JvmField val TIERED_WITH_MINIMUM = of("tiered_with_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -43344,6 +43308,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithMinimumConfig.Builder::class) @@ -43534,23 +43510,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -43582,6 +43546,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -43717,23 +43693,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -43765,6 +43729,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -44424,31 +44400,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -44495,33 +44459,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val UNIT_WITH_PERCENT = ModelType(JsonField.of("unit_with_percent")) + @JvmField val UNIT_WITH_PERCENT = of("unit_with_percent") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -44548,6 +44511,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithPercentConfig.Builder::class) @@ -44737,23 +44712,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -44785,6 +44748,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -44920,23 +44895,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -44968,6 +44931,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -45634,31 +45609,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -45705,34 +45668,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val PACKAGE_WITH_ALLOCATION = - ModelType(JsonField.of("package_with_allocation")) + @JvmField val PACKAGE_WITH_ALLOCATION = of("package_with_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -45759,6 +45720,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PackageWithAllocationConfig.Builder::class) @@ -45950,23 +45923,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -45998,6 +45959,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -46133,23 +46106,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -46181,6 +46142,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -46842,31 +46815,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -46913,33 +46874,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val TIERED_WITH_PRORATION = ModelType(JsonField.of("tiered_with_proration")) + @JvmField val TIERED_WITH_PRORATION = of("tiered_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -46966,6 +46926,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TieredWithProrationConfig.Builder::class) @@ -47156,23 +47128,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -47204,6 +47164,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -47339,23 +47311,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -47387,6 +47347,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -48047,31 +48019,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -48118,33 +48078,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val UNIT_WITH_PRORATION = ModelType(JsonField.of("unit_with_proration")) + @JvmField val UNIT_WITH_PRORATION = of("unit_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -48171,6 +48130,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = UnitWithProrationConfig.Builder::class) @@ -48361,23 +48332,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -48409,6 +48368,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -48544,23 +48515,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -48592,6 +48551,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -49252,31 +49223,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -49323,6 +49282,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedAllocationConfig.Builder::class) @@ -49408,22 +49379,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val GROUPED_ALLOCATION = ModelType(JsonField.of("grouped_allocation")) + @JvmField val GROUPED_ALLOCATION = of("grouped_allocation") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -49450,6 +49408,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -49566,23 +49536,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -49614,6 +49572,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -49749,23 +49719,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -49797,6 +49755,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -50477,31 +50447,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -50548,6 +50506,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = GroupedWithProratedMinimumConfig.Builder::class) @@ -50636,23 +50606,10 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField - val GROUPED_WITH_PRORATED_MINIMUM = - ModelType(JsonField.of("grouped_with_prorated_minimum")) + val GROUPED_WITH_PRORATED_MINIMUM = of("grouped_with_prorated_minimum") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -50679,6 +50636,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -50795,23 +50764,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -50843,6 +50800,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -50978,23 +50947,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -51026,6 +50983,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -51760,31 +51729,19 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ANNUAL = Cadence(JsonField.of("annual")) + @JvmField val ANNUAL = of("annual") - @JvmField val SEMI_ANNUAL = Cadence(JsonField.of("semi_annual")) + @JvmField val SEMI_ANNUAL = of("semi_annual") - @JvmField val MONTHLY = Cadence(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val QUARTERLY = Cadence(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val ONE_TIME = Cadence(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val CUSTOM = Cadence(JsonField.of("custom")) + @JvmField val CUSTOM = of("custom") @JvmStatic fun of(value: String) = Cadence(JsonField.of(value)) } @@ -51831,33 +51788,32 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ModelType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue - fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + return /* spotless:off */ other is Cadence && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ModelType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value companion object { - @JvmField - val BULK_WITH_PRORATION = ModelType(JsonField.of("bulk_with_proration")) + @JvmField val BULK_WITH_PRORATION = of("bulk_with_proration") @JvmStatic fun of(value: String) = ModelType(JsonField.of(value)) } @@ -51884,6 +51840,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ModelType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** @@ -52000,23 +51968,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -52048,6 +52004,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -52183,23 +52151,11 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val DAY = DurationUnit(JsonField.of("day")) + @JvmField val DAY = of("day") - @JvmField val MONTH = DurationUnit(JsonField.of("month")) + @JvmField val MONTH = of("month") @JvmStatic fun of(value: String) = DurationUnit(JsonField.of(value)) } @@ -52231,6 +52187,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DurationUnit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeResponse.kt index 1b4eefe9..48e5c1bc 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeResponse.kt @@ -1444,22 +1444,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1486,6 +1473,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1750,23 +1749,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1793,6 +1778,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2052,22 +2049,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2094,6 +2078,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2372,21 +2368,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2413,6 +2397,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2672,21 +2668,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2713,6 +2697,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3304,21 +3300,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3345,6 +3329,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3568,21 +3564,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3609,6 +3593,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3837,21 +3833,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3878,6 +3862,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5989,25 +5985,13 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val ENDED = Status(JsonField.of("ended")) + @JvmField val ENDED = of("ended") - @JvmField val UPCOMING = Status(JsonField.of("upcoming")) + @JvmField val UPCOMING = of("upcoming") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -6042,6 +6026,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TrialInfo.Builder::class) diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseParams.kt index f4532d56..5a1f9f7c 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.time.LocalDate import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseResponse.kt index 3ab70645..8ebc4e15 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseResponse.kt @@ -1443,22 +1443,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1485,6 +1472,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1749,23 +1748,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1792,6 +1777,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2051,22 +2048,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2093,6 +2077,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2371,21 +2367,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2412,6 +2396,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2671,21 +2667,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2712,6 +2696,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3303,21 +3299,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3344,6 +3328,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3567,21 +3563,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3608,6 +3592,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3836,21 +3832,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3877,6 +3861,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5988,25 +5984,13 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val ENDED = Status(JsonField.of("ended")) + @JvmField val ENDED = of("ended") - @JvmField val UPCOMING = Status(JsonField.of("upcoming")) + @JvmField val UPCOMING = of("upcoming") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -6041,6 +6025,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TrialInfo.Builder::class) diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationParams.kt index cbfc8bab..130a1dc3 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationParams.kt @@ -7,7 +7,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationResponse.kt index fa4ab6b9..51f12434 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationResponse.kt @@ -1446,22 +1446,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1488,6 +1475,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1752,23 +1751,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1795,6 +1780,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2054,22 +2051,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2096,6 +2080,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2374,21 +2370,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2415,6 +2399,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2674,21 +2670,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2715,6 +2699,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3306,21 +3302,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3347,6 +3331,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3570,21 +3566,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3611,6 +3595,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3839,21 +3835,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3880,6 +3864,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5991,25 +5987,13 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val ENDED = Status(JsonField.of("ended")) + @JvmField val ENDED = of("ended") - @JvmField val UPCOMING = Status(JsonField.of("upcoming")) + @JvmField val UPCOMING = of("upcoming") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -6044,6 +6028,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TrialInfo.Builder::class) diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesParams.kt index 9cc6f5fb..3b3c5d01 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects class SubscriptionUnscheduleFixedFeeQuantityUpdatesParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse.kt index 3522fb44..72884eca 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse.kt @@ -1459,22 +1459,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1501,6 +1488,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1765,23 +1764,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1808,6 +1793,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2067,22 +2064,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2109,6 +2093,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2387,21 +2383,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2428,6 +2412,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2687,21 +2683,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2728,6 +2712,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3319,21 +3315,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3360,6 +3344,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3583,21 +3579,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3624,6 +3608,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3852,21 +3848,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3893,6 +3877,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -6004,25 +6000,13 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val ENDED = Status(JsonField.of("ended")) + @JvmField val ENDED = of("ended") - @JvmField val UPCOMING = Status(JsonField.of("upcoming")) + @JvmField val UPCOMING = of("upcoming") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -6057,6 +6041,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TrialInfo.Builder::class) diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesParams.kt index 4b77ab7a..2f29baa1 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesParams.kt @@ -7,7 +7,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesResponse.kt index 934f0d4a..21697a37 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesResponse.kt @@ -1454,22 +1454,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1496,6 +1483,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1760,23 +1759,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1803,6 +1788,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2062,22 +2059,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2104,6 +2088,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2382,21 +2378,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2423,6 +2407,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2682,21 +2678,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2723,6 +2707,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3314,21 +3310,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3355,6 +3339,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3578,21 +3574,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3619,6 +3603,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3847,21 +3843,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3888,6 +3872,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5999,25 +5995,13 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val ENDED = Status(JsonField.of("ended")) + @JvmField val ENDED = of("ended") - @JvmField val UPCOMING = Status(JsonField.of("upcoming")) + @JvmField val UPCOMING = of("upcoming") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -6052,6 +6036,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TrialInfo.Builder::class) diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityParams.kt index e4733743..2b27240b 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityParams.kt @@ -16,7 +16,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.LocalDate import java.util.Objects import java.util.Optional @@ -398,25 +397,13 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ChangeOption && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val IMMEDIATE = ChangeOption(JsonField.of("immediate")) + @JvmField val IMMEDIATE = of("immediate") - @JvmField val UPCOMING_INVOICE = ChangeOption(JsonField.of("upcoming_invoice")) + @JvmField val UPCOMING_INVOICE = of("upcoming_invoice") - @JvmField val EFFECTIVE_DATE = ChangeOption(JsonField.of("effective_date")) + @JvmField val EFFECTIVE_DATE = of("effective_date") @JvmStatic fun of(value: String) = ChangeOption(JsonField.of(value)) } @@ -451,6 +438,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ChangeOption && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityResponse.kt index 86b91932..3786669e 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityResponse.kt @@ -1446,22 +1446,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1488,6 +1475,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1752,23 +1751,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1795,6 +1780,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2054,22 +2051,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2096,6 +2080,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2374,21 +2370,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2415,6 +2399,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2674,21 +2670,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2715,6 +2699,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3306,21 +3302,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3347,6 +3331,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3570,21 +3566,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3611,6 +3595,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3839,21 +3835,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3880,6 +3864,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5991,25 +5987,13 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val ENDED = Status(JsonField.of("ended")) + @JvmField val ENDED = of("ended") - @JvmField val UPCOMING = Status(JsonField.of("upcoming")) + @JvmField val UPCOMING = of("upcoming") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -6044,6 +6028,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TrialInfo.Builder::class) diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateParams.kt index 1feaf205..6401cc6c 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateParams.kt @@ -12,7 +12,6 @@ import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable -import com.withorb.api.models.* import java.util.Objects import java.util.Optional diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateTrialParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateTrialParams.kt index f3a0c361..70b79245 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateTrialParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateTrialParams.kt @@ -25,7 +25,6 @@ import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams import com.withorb.api.core.toImmutable import com.withorb.api.errors.OrbInvalidDataException -import com.withorb.api.models.* import java.time.OffsetDateTime import java.util.Objects import java.util.Optional @@ -483,21 +482,9 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is UnionMember1 && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val IMMEDIATE = UnionMember1(JsonField.of("immediate")) + @JvmField val IMMEDIATE = of("immediate") @JvmStatic fun of(value: String) = UnionMember1(JsonField.of(value)) } @@ -524,6 +511,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is UnionMember1 && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } } diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateTrialResponse.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateTrialResponse.kt index 11d3ea97..aa7b15f9 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateTrialResponse.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateTrialResponse.kt @@ -1443,22 +1443,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val AMOUNT_DISCOUNT = AdjustmentType(JsonField.of("amount_discount")) + @JvmField val AMOUNT_DISCOUNT = of("amount_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1485,6 +1472,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1749,23 +1748,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val PERCENTAGE_DISCOUNT = - AdjustmentType(JsonField.of("percentage_discount")) + @JvmField val PERCENTAGE_DISCOUNT = of("percentage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -1792,6 +1777,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2051,22 +2048,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField - val USAGE_DISCOUNT = AdjustmentType(JsonField.of("usage_discount")) + @JvmField val USAGE_DISCOUNT = of("usage_discount") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2093,6 +2077,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2371,21 +2367,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MINIMUM = AdjustmentType(JsonField.of("minimum")) + @JvmField val MINIMUM = of("minimum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2412,6 +2396,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -2671,21 +2667,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val MAXIMUM = AdjustmentType(JsonField.of("maximum")) + @JvmField val MAXIMUM = of("maximum") @JvmStatic fun of(value: String) = AdjustmentType(JsonField.of(value)) } @@ -2712,6 +2696,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AdjustmentType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3303,21 +3299,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val AMOUNT = DiscountType(JsonField.of("amount")) + @JvmField val AMOUNT = of("amount") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3344,6 +3328,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3567,21 +3563,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERCENTAGE = DiscountType(JsonField.of("percentage")) + @JvmField val PERCENTAGE = of("percentage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3608,6 +3592,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -3836,21 +3832,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val USAGE = DiscountType(JsonField.of("usage")) + @JvmField val USAGE = of("usage") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -3877,6 +3861,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5988,25 +5984,13 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val ACTIVE = Status(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val ENDED = Status(JsonField.of("ended")) + @JvmField val ENDED = of("ended") - @JvmField val UPCOMING = Status(JsonField.of("upcoming")) + @JvmField val UPCOMING = of("upcoming") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -6041,6 +6025,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = TrialInfo.Builder::class) diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUsage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUsage.kt index 83821aa4..15e4f2de 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUsage.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUsage.kt @@ -571,23 +571,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ViewMode && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERIODIC = ViewMode(JsonField.of("periodic")) + @JvmField val PERIODIC = of("periodic") - @JvmField val CUMULATIVE = ViewMode(JsonField.of("cumulative")) + @JvmField val CUMULATIVE = of("cumulative") @JvmStatic fun of(value: String) = ViewMode(JsonField.of(value)) } @@ -618,6 +606,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ViewMode && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1216,23 +1216,11 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ViewMode && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val PERIODIC = ViewMode(JsonField.of("periodic")) + @JvmField val PERIODIC = of("periodic") - @JvmField val CUMULATIVE = ViewMode(JsonField.of("cumulative")) + @JvmField val CUMULATIVE = of("cumulative") @JvmStatic fun of(value: String) = ViewMode(JsonField.of(value)) } @@ -1263,6 +1251,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ViewMode && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/TopLevelPingParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/TopLevelPingParams.kt index e8534275..1ec61824 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/TopLevelPingParams.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/TopLevelPingParams.kt @@ -5,7 +5,6 @@ package com.withorb.api.models import com.withorb.api.core.NoAutoDetect import com.withorb.api.core.http.Headers import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.util.Objects class TopLevelPingParams diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/TrialDiscount.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/TrialDiscount.kt index b15bb282..8345c816 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/models/TrialDiscount.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/TrialDiscount.kt @@ -199,21 +199,9 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { - @JvmField val TRIAL = DiscountType(JsonField.of("trial")) + @JvmField val TRIAL = of("trial") @JvmStatic fun of(value: String) = DiscountType(JsonField.of(value)) } @@ -240,6 +228,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is DiscountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/AlertServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/AlertServiceAsync.kt index 09ea5e34..3314cc15 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/AlertServiceAsync.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/AlertServiceAsync.kt @@ -98,14 +98,22 @@ interface AlertServiceAsync { requestOptions: RequestOptions = RequestOptions.none() ): CompletableFuture - /** This endpoint can be used to disable an alert. */ + /** + * This endpoint allows you to disable an alert. To disable a plan-level alert for a specific + * subscription, you must include the `subscription_id`. The `subscription_id` is not required + * for customer or subscription level alerts. + */ @JvmOverloads fun disable( params: AlertDisableParams, requestOptions: RequestOptions = RequestOptions.none() ): CompletableFuture - /** This endpoint can be used to enable an alert. */ + /** + * This endpoint allows you to enable an alert. To enable a plan-level alert for a specific + * subscription, you must include the `subscription_id`. The `subscription_id` is not required + * for customer or subscription level alerts. + */ @JvmOverloads fun enable( params: AlertEnableParams, diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/AlertServiceAsyncImpl.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/AlertServiceAsyncImpl.kt index 15376e0f..107dd76c 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/AlertServiceAsyncImpl.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/AlertServiceAsyncImpl.kt @@ -251,7 +251,11 @@ constructor( private val disableHandler: Handler = jsonHandler(clientOptions.jsonMapper).withErrorHandler(errorHandler) - /** This endpoint can be used to disable an alert. */ + /** + * This endpoint allows you to disable an alert. To disable a plan-level alert for a specific + * subscription, you must include the `subscription_id`. The `subscription_id` is not required + * for customer or subscription level alerts. + */ override fun disable( params: AlertDisableParams, requestOptions: RequestOptions @@ -281,7 +285,11 @@ constructor( private val enableHandler: Handler = jsonHandler(clientOptions.jsonMapper).withErrorHandler(errorHandler) - /** This endpoint can be used to enable an alert. */ + /** + * This endpoint allows you to enable an alert. To enable a plan-level alert for a specific + * subscription, you must include the `subscription_id`. The `subscription_id` is not required + * for customer or subscription level alerts. + */ override fun enable( params: AlertEnableParams, requestOptions: RequestOptions diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/blocking/AlertService.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/blocking/AlertService.kt index beea64d7..435fcb2c 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/services/blocking/AlertService.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/blocking/AlertService.kt @@ -97,14 +97,22 @@ interface AlertService { requestOptions: RequestOptions = RequestOptions.none() ): Alert - /** This endpoint can be used to disable an alert. */ + /** + * This endpoint allows you to disable an alert. To disable a plan-level alert for a specific + * subscription, you must include the `subscription_id`. The `subscription_id` is not required + * for customer or subscription level alerts. + */ @JvmOverloads fun disable( params: AlertDisableParams, requestOptions: RequestOptions = RequestOptions.none() ): Alert - /** This endpoint can be used to enable an alert. */ + /** + * This endpoint allows you to enable an alert. To enable a plan-level alert for a specific + * subscription, you must include the `subscription_id`. The `subscription_id` is not required + * for customer or subscription level alerts. + */ @JvmOverloads fun enable( params: AlertEnableParams, diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/blocking/AlertServiceImpl.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/blocking/AlertServiceImpl.kt index 19275393..07261080 100644 --- a/orb-java-core/src/main/kotlin/com/withorb/api/services/blocking/AlertServiceImpl.kt +++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/blocking/AlertServiceImpl.kt @@ -234,7 +234,11 @@ constructor( private val disableHandler: Handler = jsonHandler(clientOptions.jsonMapper).withErrorHandler(errorHandler) - /** This endpoint can be used to disable an alert. */ + /** + * This endpoint allows you to disable an alert. To disable a plan-level alert for a specific + * subscription, you must include the `subscription_id`. The `subscription_id` is not required + * for customer or subscription level alerts. + */ override fun disable(params: AlertDisableParams, requestOptions: RequestOptions): Alert { val request = HttpRequest.builder() @@ -260,7 +264,11 @@ constructor( private val enableHandler: Handler = jsonHandler(clientOptions.jsonMapper).withErrorHandler(errorHandler) - /** This endpoint can be used to enable an alert. */ + /** + * This endpoint allows you to enable an alert. To enable a plan-level alert for a specific + * subscription, you must include the `subscription_id`. The `subscription_id` is not required + * for customer or subscription level alerts. + */ override fun enable(params: AlertEnableParams, requestOptions: RequestOptions): Alert { val request = HttpRequest.builder() diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertCreateForCustomerParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertCreateForCustomerParamsTest.kt index 0d95b3b9..134fae4f 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertCreateForCustomerParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertCreateForCustomerParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertCreateForExternalCustomerParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertCreateForExternalCustomerParamsTest.kt index 9c1d6c7a..89e46e89 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertCreateForExternalCustomerParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertCreateForExternalCustomerParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertCreateForSubscriptionParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertCreateForSubscriptionParamsTest.kt index 7de63891..525e098a 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertCreateForSubscriptionParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertCreateForSubscriptionParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertDisableParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertDisableParamsTest.kt index 6d5b771f..6e1b9be4 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertDisableParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertDisableParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.http.QueryParams import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -10,7 +10,30 @@ class AlertDisableParamsTest { @Test fun createAlertDisableParams() { - AlertDisableParams.builder().alertConfigurationId("alert_configuration_id").build() + AlertDisableParams.builder() + .alertConfigurationId("alert_configuration_id") + .subscriptionId("subscription_id") + .build() + } + + @Test + fun getQueryParams() { + val params = + AlertDisableParams.builder() + .alertConfigurationId("alert_configuration_id") + .subscriptionId("subscription_id") + .build() + val expected = QueryParams.builder() + expected.put("subscription_id", "subscription_id") + assertThat(params.getQueryParams()).isEqualTo(expected.build()) + } + + @Test + fun getQueryParamsWithoutOptionalFields() { + val params = + AlertDisableParams.builder().alertConfigurationId("alert_configuration_id").build() + val expected = QueryParams.builder() + assertThat(params.getQueryParams()).isEqualTo(expected.build()) } @Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertEnableParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertEnableParamsTest.kt index ea48b146..402b764a 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertEnableParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertEnableParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.http.QueryParams import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -10,7 +10,30 @@ class AlertEnableParamsTest { @Test fun createAlertEnableParams() { - AlertEnableParams.builder().alertConfigurationId("alert_configuration_id").build() + AlertEnableParams.builder() + .alertConfigurationId("alert_configuration_id") + .subscriptionId("subscription_id") + .build() + } + + @Test + fun getQueryParams() { + val params = + AlertEnableParams.builder() + .alertConfigurationId("alert_configuration_id") + .subscriptionId("subscription_id") + .build() + val expected = QueryParams.builder() + expected.put("subscription_id", "subscription_id") + assertThat(params.getQueryParams()).isEqualTo(expected.build()) + } + + @Test + fun getQueryParamsWithoutOptionalFields() { + val params = + AlertEnableParams.builder().alertConfigurationId("alert_configuration_id").build() + val expected = QueryParams.builder() + assertThat(params.getQueryParams()).isEqualTo(expected.build()) } @Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertListParamsTest.kt index 0e92fefc..35bb3306 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertRetrieveParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertRetrieveParamsTest.kt index f14a5112..294dceb4 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertRetrieveParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertRetrieveParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertTest.kt index a9786d6a..fa22dedb 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -15,11 +16,27 @@ class AlertTest { .id("XuxCbt7x9L82yyeF") .createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) .currency("currency") - .customer(Alert.Customer.builder().build()) + .customer( + Alert.Customer.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .enabled(true) - .metric(Alert.Metric.builder().build()) - .plan(Alert.Plan.builder().build()) - .subscription(Alert.Subscription.builder().build()) + .metric( + Alert.Metric.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) + .plan( + Alert.Plan.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) + .subscription( + Alert.Subscription.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .thresholds(listOf(Alert.Threshold.builder().value(0.0).build())) .type(Alert.Type.USAGE_EXCEEDED) .build() @@ -27,11 +44,29 @@ class AlertTest { assertThat(alert.id()).isEqualTo("XuxCbt7x9L82yyeF") assertThat(alert.createdAt()).isEqualTo(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) assertThat(alert.currency()).contains("currency") - assertThat(alert.customer()).contains(Alert.Customer.builder().build()) + assertThat(alert.customer()) + .contains( + Alert.Customer.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(alert.enabled()).isEqualTo(true) - assertThat(alert.metric()).contains(Alert.Metric.builder().build()) - assertThat(alert.plan()).contains(Alert.Plan.builder().build()) - assertThat(alert.subscription()).contains(Alert.Subscription.builder().build()) + assertThat(alert.metric()) + .contains( + Alert.Metric.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) + assertThat(alert.plan()) + .contains( + Alert.Plan.builder().putAdditionalProperty("foo", JsonValue.from("string")).build() + ) + assertThat(alert.subscription()) + .contains( + Alert.Subscription.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(alert.thresholds().get()) .containsExactly(Alert.Threshold.builder().value(0.0).build()) assertThat(alert.type()).isEqualTo(Alert.Type.USAGE_EXCEEDED) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertUpdateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertUpdateParamsTest.kt index 4e54d478..c6d39871 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertUpdateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/AlertUpdateParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/AmountDiscountTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/AmountDiscountTest.kt index 12102a3c..9a0a9031 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/AmountDiscountTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/AmountDiscountTest.kt @@ -12,13 +12,14 @@ class AmountDiscountTest { val amountDiscount = AmountDiscount.builder() .amountDiscount("amount_discount") - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(AmountDiscount.DiscountType.AMOUNT) .reason("reason") .build() assertThat(amountDiscount).isNotNull assertThat(amountDiscount.amountDiscount()).isEqualTo("amount_discount") - assertThat(amountDiscount.appliesToPriceIds()).containsExactly("string") + assertThat(amountDiscount.appliesToPriceIds()) + .containsExactly("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") assertThat(amountDiscount.discountType()).isEqualTo(AmountDiscount.DiscountType.AMOUNT) assertThat(amountDiscount.reason()).contains("reason") } diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/BillableMetricTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/BillableMetricTest.kt index 99254d21..b126f54e 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/BillableMetricTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/BillableMetricTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -31,7 +32,11 @@ class BillableMetricTest { .name("name") .build() ) - .metadata(BillableMetric.Metadata.builder().build()) + .metadata( + BillableMetric.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .status(BillableMetric.Status.ACTIVE) .build() @@ -56,7 +61,12 @@ class BillableMetricTest { .name("name") .build() ) - assertThat(billableMetric.metadata()).isEqualTo(BillableMetric.Metadata.builder().build()) + assertThat(billableMetric.metadata()) + .isEqualTo( + BillableMetric.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(billableMetric.name()).isEqualTo("name") assertThat(billableMetric.status()).isEqualTo(BillableMetric.Status.ACTIVE) } diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponArchiveParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponArchiveParamsTest.kt index 5c76b8ba..463880eb 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponArchiveParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponArchiveParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponCreateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponCreateParamsTest.kt index 10e34bc2..cc019b39 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponCreateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponCreateParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponFetchParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponFetchParamsTest.kt index 8a6925be..c694c8be 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponFetchParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponFetchParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponListParamsTest.kt index bafce926..1b09a92a 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponSubscriptionListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponSubscriptionListParamsTest.kt index 98731d73..6ca7910d 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponSubscriptionListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponSubscriptionListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponTest.kt index 47ff455c..493c4188 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CouponTest.kt @@ -17,7 +17,7 @@ class CouponTest { .discount( Coupon.Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -36,7 +36,7 @@ class CouponTest { .isEqualTo( Coupon.Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CreditNoteCreateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CreditNoteCreateParamsTest.kt index facccb4d..dc09f00f 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CreditNoteCreateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CreditNoteCreateParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CreditNoteFetchParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CreditNoteFetchParamsTest.kt index e5654feb..2e4ac5c9 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CreditNoteFetchParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CreditNoteFetchParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CreditNoteListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CreditNoteListParamsTest.kt index 029d8844..e56651f0 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CreditNoteListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CreditNoteListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateParamsTest.kt index 2701e63e..8ce8081e 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerBalanceTransactionListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerBalanceTransactionListParamsTest.kt index babe8e00..a107f663 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerBalanceTransactionListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerBalanceTransactionListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListByExternalIdParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListByExternalIdParamsTest.kt index ed92fe0f..70bcb624 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListByExternalIdParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListByExternalIdParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListByExternalIdResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListByExternalIdResponseTest.kt index cba3cf3b..11f978fa 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListByExternalIdResponseTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListByExternalIdResponseTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -56,7 +57,12 @@ class CustomerCostListByExternalIdResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType .PERCENTAGE @@ -94,7 +100,12 @@ class CustomerCostListByExternalIdResponseTest { ) .maximumAmount("maximum_amount") .metadata( - Price.UnitPrice.Metadata.builder().build() + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() ) .minimum( Price.UnitPrice.Minimum.builder() @@ -172,7 +183,12 @@ class CustomerCostListByExternalIdResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType .PERCENTAGE @@ -208,7 +224,14 @@ class CustomerCostListByExternalIdResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListParamsTest.kt index 123ef143..93ce194d 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListResponseTest.kt index 6a5fc463..d494f0fa 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListResponseTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListResponseTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -56,7 +57,12 @@ class CustomerCostListResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType .PERCENTAGE @@ -94,7 +100,12 @@ class CustomerCostListResponseTest { ) .maximumAmount("maximum_amount") .metadata( - Price.UnitPrice.Metadata.builder().build() + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() ) .minimum( Price.UnitPrice.Minimum.builder() @@ -172,7 +183,12 @@ class CustomerCostListResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType .PERCENTAGE @@ -208,7 +224,14 @@ class CustomerCostListResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreateParamsTest.kt index 9333a246..5fcbfdfe 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreateParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -42,7 +42,11 @@ class CustomerCreateParamsTest { .currency("currency") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerCreateParams.Metadata.builder().build()) + .metadata( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") .reportingConfiguration( @@ -117,7 +121,11 @@ class CustomerCreateParamsTest { .currency("currency") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerCreateParams.Metadata.builder().build()) + .metadata( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") .reportingConfiguration( @@ -190,7 +198,12 @@ class CustomerCreateParamsTest { assertThat(body.currency()).isEqualTo("currency") assertThat(body.emailDelivery()).isEqualTo(true) assertThat(body.externalCustomerId()).isEqualTo("external_customer_id") - assertThat(body.metadata()).isEqualTo(CustomerCreateParams.Metadata.builder().build()) + assertThat(body.metadata()) + .isEqualTo( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(body.paymentProvider()) .isEqualTo(CustomerCreateParams.PaymentProvider.QUICKBOOKS) assertThat(body.paymentProviderId()).isEqualTo("payment_provider_id") diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdParamsTest.kt index f21ee9c3..6fac02ec 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -44,6 +44,7 @@ class CustomerCreditLedgerCreateEntryByExternalIdParamsTest { .AddIncrementCreditLedgerEntryRequestParams .Metadata .builder() + .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) .perUnitCostBasis("per_unit_cost_basis") diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryParamsTest.kt index 43f21cbc..aec5a315 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -43,6 +43,7 @@ class CustomerCreditLedgerCreateEntryParamsTest { .AddIncrementCreditLedgerEntryRequestParams .Metadata .builder() + .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) .perUnitCostBasis("per_unit_cost_basis") diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdParamsTest.kt index f7bd3066..072781fa 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerListParamsTest.kt index 98dd3a7d..be878076 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditLedgerListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdParamsTest.kt index 0880d599..7c047b15 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditListParamsTest.kt index 8c82d989..001058c5 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdParamsTest.kt index 2bd7664f..80ebaef6 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateParamsTest.kt index c54031ba..83d495b6 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteByExternalIdParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteByExternalIdParamsTest.kt index a5e94d89..807dbfed 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteByExternalIdParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteByExternalIdParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteParamsTest.kt index 5d718fd9..39582af8 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdParamsTest.kt index 7dbb5df8..0c6fef59 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpListParamsTest.kt index d9b3e8d8..bd477ca6 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditTopUpListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerDeleteParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerDeleteParamsTest.kt index 6ca1046b..4865ccf8 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerDeleteParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerDeleteParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerFetchByExternalIdParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerFetchByExternalIdParamsTest.kt index ffdf13bf..5207baa3 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerFetchByExternalIdParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerFetchByExternalIdParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerFetchParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerFetchParamsTest.kt index 49a0b2e4..3a02f7de 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerFetchParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerFetchParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerListParamsTest.kt index 023f3f9a..ac70c8b8 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerTest.kt index 81122dec..36f5be97 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -32,7 +33,11 @@ class CustomerTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -98,7 +103,12 @@ class CustomerTest { assertThat(customer.emailDelivery()).isEqualTo(true) assertThat(customer.exemptFromAutomatedTax()).contains(true) assertThat(customer.externalCustomerId()).contains("external_customer_id") - assertThat(customer.metadata()).isEqualTo(Customer.Metadata.builder().build()) + assertThat(customer.metadata()) + .isEqualTo( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(customer.name()).isEqualTo("name") assertThat(customer.paymentProvider()).contains(Customer.PaymentProvider.QUICKBOOKS) assertThat(customer.paymentProviderId()).contains("payment_provider_id") diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParamsTest.kt index 4ccccfde..bd290ce8 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -43,7 +43,11 @@ class CustomerUpdateByExternalIdParamsTest { .email("dev@stainlessapi.com") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerUpdateByExternalIdParams.Metadata.builder().build()) + .metadata( + CustomerUpdateByExternalIdParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(CustomerUpdateByExternalIdParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -123,7 +127,11 @@ class CustomerUpdateByExternalIdParamsTest { .email("dev@stainlessapi.com") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerUpdateByExternalIdParams.Metadata.builder().build()) + .metadata( + CustomerUpdateByExternalIdParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(CustomerUpdateByExternalIdParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -201,7 +209,11 @@ class CustomerUpdateByExternalIdParamsTest { assertThat(body.emailDelivery()).isEqualTo(true) assertThat(body.externalCustomerId()).isEqualTo("external_customer_id") assertThat(body.metadata()) - .isEqualTo(CustomerUpdateByExternalIdParams.Metadata.builder().build()) + .isEqualTo( + CustomerUpdateByExternalIdParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(body.name()).isEqualTo("name") assertThat(body.paymentProvider()) .isEqualTo(CustomerUpdateByExternalIdParams.PaymentProvider.QUICKBOOKS) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateParamsTest.kt index f8a806e2..3c5c4fa1 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerUpdateParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -42,7 +42,11 @@ class CustomerUpdateParamsTest { .email("dev@stainlessapi.com") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerUpdateParams.Metadata.builder().build()) + .metadata( + CustomerUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(CustomerUpdateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -117,7 +121,11 @@ class CustomerUpdateParamsTest { .email("dev@stainlessapi.com") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerUpdateParams.Metadata.builder().build()) + .metadata( + CustomerUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(CustomerUpdateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -189,7 +197,12 @@ class CustomerUpdateParamsTest { assertThat(body.email()).isEqualTo("dev@stainlessapi.com") assertThat(body.emailDelivery()).isEqualTo(true) assertThat(body.externalCustomerId()).isEqualTo("external_customer_id") - assertThat(body.metadata()).isEqualTo(CustomerUpdateParams.Metadata.builder().build()) + assertThat(body.metadata()) + .isEqualTo( + CustomerUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(body.name()).isEqualTo("name") assertThat(body.paymentProvider()) .isEqualTo(CustomerUpdateParams.PaymentProvider.QUICKBOOKS) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillCloseParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillCloseParamsTest.kt index 2b7354c4..7322f0d2 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillCloseParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillCloseParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillCreateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillCreateParamsTest.kt index 5bcd760b..36e4f4a3 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillCreateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillCreateParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillFetchParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillFetchParamsTest.kt index e2164a46..2a7ed7d4 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillFetchParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillFetchParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillListParamsTest.kt index eb6c6b28..79d0f08d 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillRevertParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillRevertParamsTest.kt index 6b6a9627..b21700b5 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillRevertParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventBackfillRevertParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventDeprecateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventDeprecateParamsTest.kt index 5fea1f45..3cca9473 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventDeprecateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventDeprecateParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventIngestParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventIngestParamsTest.kt index b6d89234..a29b3920 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventIngestParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventIngestParamsTest.kt @@ -4,7 +4,6 @@ package com.withorb.api.models import com.withorb.api.core.JsonValue import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventSearchParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventSearchParamsTest.kt index 0eba4de3..b3194598 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventSearchParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventSearchParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventUpdateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventUpdateParamsTest.kt index 32c08738..a88729a8 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventUpdateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventUpdateParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.JsonValue -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventVolumeListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventVolumeListParamsTest.kt index db58bf95..bea0ebe9 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/EventVolumeListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/EventVolumeListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceCreateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceCreateParamsTest.kt index 6610f74c..f3e18fe5 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceCreateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceCreateParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import java.time.LocalDate import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat @@ -37,7 +37,7 @@ class InvoiceCreateParamsTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -46,7 +46,11 @@ class InvoiceCreateParamsTest { ) .externalCustomerId("external-customer-id") .memo("An optional memo for my invoice.") - .metadata(InvoiceCreateParams.Metadata.builder().build()) + .metadata( + InvoiceCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .willAutoIssue(false) .build() } @@ -79,7 +83,7 @@ class InvoiceCreateParamsTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -88,7 +92,11 @@ class InvoiceCreateParamsTest { ) .externalCustomerId("external-customer-id") .memo("An optional memo for my invoice.") - .metadata(InvoiceCreateParams.Metadata.builder().build()) + .metadata( + InvoiceCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .willAutoIssue(false) .build() val body = params.getBody() @@ -119,7 +127,7 @@ class InvoiceCreateParamsTest { .isEqualTo( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -128,7 +136,12 @@ class InvoiceCreateParamsTest { ) assertThat(body.externalCustomerId()).isEqualTo("external-customer-id") assertThat(body.memo()).isEqualTo("An optional memo for my invoice.") - assertThat(body.metadata()).isEqualTo(InvoiceCreateParams.Metadata.builder().build()) + assertThat(body.metadata()) + .isEqualTo( + InvoiceCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(body.willAutoIssue()).isEqualTo(false) } diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchParamsTest.kt index d7eead75..030b67e4 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchUpcomingParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchUpcomingParamsTest.kt index e273fcf8..db1f67b3 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchUpcomingParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchUpcomingParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponseTest.kt index e9b4e748..c07c0a7b 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponseTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceFetchUpcomingResponseTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.core.JsonNull +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -93,12 +93,12 @@ class InvoiceFetchUpcomingResponseTest { .value("value") .build() ) - .discount(JsonNull.of()) + .discount(JsonValue.from(mapOf())) .discounts( listOf( InvoiceLevelDiscount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -122,7 +122,9 @@ class InvoiceFetchUpcomingResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -178,7 +180,12 @@ class InvoiceFetchUpcomingResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -212,7 +219,14 @@ class InvoiceFetchUpcomingResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -295,7 +309,11 @@ class InvoiceFetchUpcomingResponseTest { ) .maximumAmount("maximum_amount") .memo("memo") - .metadata(InvoiceFetchUpcomingResponse.Metadata.builder().build()) + .metadata( + InvoiceFetchUpcomingResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( InvoiceFetchUpcomingResponse.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -423,12 +441,13 @@ class InvoiceFetchUpcomingResponseTest { .value("value") .build() ) - assertThat(invoiceFetchUpcomingResponse._discount()).isEqualTo(JsonNull.of()) + assertThat(invoiceFetchUpcomingResponse._discount()) + .isEqualTo(JsonValue.from(mapOf())) assertThat(invoiceFetchUpcomingResponse.discounts()) .containsExactly( InvoiceLevelDiscount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -457,7 +476,7 @@ class InvoiceFetchUpcomingResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -510,7 +529,9 @@ class InvoiceFetchUpcomingResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -538,7 +559,11 @@ class InvoiceFetchUpcomingResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -617,7 +642,11 @@ class InvoiceFetchUpcomingResponseTest { assertThat(invoiceFetchUpcomingResponse.maximumAmount()).contains("maximum_amount") assertThat(invoiceFetchUpcomingResponse.memo()).contains("memo") assertThat(invoiceFetchUpcomingResponse.metadata()) - .isEqualTo(InvoiceFetchUpcomingResponse.Metadata.builder().build()) + .isEqualTo( + InvoiceFetchUpcomingResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(invoiceFetchUpcomingResponse.minimum()) .contains( InvoiceFetchUpcomingResponse.Minimum.builder() diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceIssueParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceIssueParamsTest.kt index c4a3fff5..20e04e12 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceIssueParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceIssueParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceLineItemCreateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceLineItemCreateParamsTest.kt index ce6cff78..5f98dcf7 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceLineItemCreateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceLineItemCreateParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import java.time.LocalDate import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponseTest.kt index b1c99f76..33d830b1 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponseTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceLineItemCreateResponseTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -17,7 +18,7 @@ class InvoiceLineItemCreateResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -69,7 +70,9 @@ class InvoiceLineItemCreateResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -94,7 +97,11 @@ class InvoiceLineItemCreateResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -164,7 +171,7 @@ class InvoiceLineItemCreateResponseTest { .contains( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -218,7 +225,9 @@ class InvoiceLineItemCreateResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -243,7 +252,11 @@ class InvoiceLineItemCreateResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceListParamsTest.kt index 6cb5c94f..65791141 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.LocalDate import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceMarkPaidParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceMarkPaidParamsTest.kt index 47f8e34d..aec841f3 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceMarkPaidParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceMarkPaidParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import java.time.LocalDate import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoicePayParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoicePayParamsTest.kt index 0e040db5..29d99462 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoicePayParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoicePayParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceTest.kt index 9ceb3896..978faec7 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.core.JsonNull +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -85,12 +85,12 @@ class InvoiceTest { .value("value") .build() ) - .discount(JsonNull.of()) + .discount(JsonValue.from(mapOf())) .discounts( listOf( InvoiceLevelDiscount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -115,7 +115,9 @@ class InvoiceTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -171,7 +173,12 @@ class InvoiceTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -205,7 +212,14 @@ class InvoiceTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -278,7 +292,11 @@ class InvoiceTest { ) .maximumAmount("maximum_amount") .memo("memo") - .metadata(Invoice.Metadata.builder().build()) + .metadata( + Invoice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Invoice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -393,12 +411,12 @@ class InvoiceTest { .value("value") .build() ) - assertThat(invoice._discount()).isEqualTo(JsonNull.of()) + assertThat(invoice._discount()).isEqualTo(JsonValue.from(mapOf())) assertThat(invoice.discounts()) .containsExactly( InvoiceLevelDiscount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -426,7 +444,7 @@ class InvoiceTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -479,7 +497,9 @@ class InvoiceTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -507,7 +527,11 @@ class InvoiceTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -577,7 +601,12 @@ class InvoiceTest { ) assertThat(invoice.maximumAmount()).contains("maximum_amount") assertThat(invoice.memo()).contains("memo") - assertThat(invoice.metadata()).isEqualTo(Invoice.Metadata.builder().build()) + assertThat(invoice.metadata()) + .isEqualTo( + Invoice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(invoice.minimum()) .contains( Invoice.Minimum.builder() diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceUpdateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceUpdateParamsTest.kt index 48a07009..28ad78b5 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceUpdateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceUpdateParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -12,7 +12,11 @@ class InvoiceUpdateParamsTest { fun createInvoiceUpdateParams() { InvoiceUpdateParams.builder() .invoiceId("invoice_id") - .metadata(InvoiceUpdateParams.Metadata.builder().build()) + .metadata( + InvoiceUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() } @@ -21,11 +25,20 @@ class InvoiceUpdateParamsTest { val params = InvoiceUpdateParams.builder() .invoiceId("invoice_id") - .metadata(InvoiceUpdateParams.Metadata.builder().build()) + .metadata( + InvoiceUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() val body = params.getBody() assertThat(body).isNotNull - assertThat(body.metadata()).isEqualTo(InvoiceUpdateParams.Metadata.builder().build()) + assertThat(body.metadata()) + .isEqualTo( + InvoiceUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) } @Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceVoidInvoiceParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceVoidInvoiceParamsTest.kt index c7f15582..9fa21fd7 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceVoidInvoiceParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/InvoiceVoidInvoiceParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemCreateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemCreateParamsTest.kt index 2faea018..fcee9610 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemCreateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemCreateParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemFetchParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemFetchParamsTest.kt index 9dadc36d..c8372bdc 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemFetchParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemFetchParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemListParamsTest.kt index 0fd057ec..57834202 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemUpdateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemUpdateParamsTest.kt index 1a633ceb..1bf290b7 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemUpdateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/ItemUpdateParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricCreateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricCreateParamsTest.kt index 267d3fda..81769e3c 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricCreateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricCreateParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -15,7 +15,11 @@ class MetricCreateParamsTest { .itemId("item_id") .name("Bytes downloaded") .sql("SELECT sum(bytes_downloaded) FROM events WHERE download_speed = 'fast'") - .metadata(MetricCreateParams.Metadata.builder().build()) + .metadata( + MetricCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() } @@ -27,7 +31,11 @@ class MetricCreateParamsTest { .itemId("item_id") .name("Bytes downloaded") .sql("SELECT sum(bytes_downloaded) FROM events WHERE download_speed = 'fast'") - .metadata(MetricCreateParams.Metadata.builder().build()) + .metadata( + MetricCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() val body = params.getBody() assertThat(body).isNotNull @@ -36,7 +44,12 @@ class MetricCreateParamsTest { assertThat(body.name()).isEqualTo("Bytes downloaded") assertThat(body.sql()) .isEqualTo("SELECT sum(bytes_downloaded) FROM events WHERE download_speed = 'fast'") - assertThat(body.metadata()).isEqualTo(MetricCreateParams.Metadata.builder().build()) + assertThat(body.metadata()) + .isEqualTo( + MetricCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) } @Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricFetchParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricFetchParamsTest.kt index 201747bd..17795cfa 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricFetchParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricFetchParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricListParamsTest.kt index f546decf..8e1564e2 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricUpdateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricUpdateParamsTest.kt index d73df26e..fad66474 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricUpdateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/MetricUpdateParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -12,7 +12,11 @@ class MetricUpdateParamsTest { fun createMetricUpdateParams() { MetricUpdateParams.builder() .metricId("metric_id") - .metadata(MetricUpdateParams.Metadata.builder().build()) + .metadata( + MetricUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() } @@ -21,11 +25,20 @@ class MetricUpdateParamsTest { val params = MetricUpdateParams.builder() .metricId("metric_id") - .metadata(MetricUpdateParams.Metadata.builder().build()) + .metadata( + MetricUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() val body = params.getBody() assertThat(body).isNotNull - assertThat(body.metadata()).isEqualTo(MetricUpdateParams.Metadata.builder().build()) + assertThat(body.metadata()) + .isEqualTo( + MetricUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) } @Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/PercentageDiscountTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/PercentageDiscountTest.kt index fe691fd0..9a1807be 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/PercentageDiscountTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/PercentageDiscountTest.kt @@ -11,13 +11,14 @@ class PercentageDiscountTest { fun createPercentageDiscount() { val percentageDiscount = PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") .build() assertThat(percentageDiscount).isNotNull - assertThat(percentageDiscount.appliesToPriceIds()).containsExactly("string") + assertThat(percentageDiscount.appliesToPriceIds()) + .containsExactly("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") assertThat(percentageDiscount.discountType()) .isEqualTo(PercentageDiscount.DiscountType.PERCENTAGE) assertThat(percentageDiscount.percentageDiscount()).isEqualTo(0.15) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanCreateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanCreateParamsTest.kt index 5fd6fb97..5ed003e1 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanCreateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanCreateParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -58,7 +58,9 @@ class PlanCreateParamsTest { .build() ) .metadata( - PlanCreateParams.Price.NewPlanUnitPrice.Metadata.builder().build() + PlanCreateParams.Price.NewPlanUnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() ) .build() ) @@ -66,7 +68,11 @@ class PlanCreateParamsTest { ) .defaultInvoiceMemo("default_invoice_memo") .externalPlanId("external_plan_id") - .metadata(PlanCreateParams.Metadata.builder().build()) + .metadata( + PlanCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .netTerms(0L) .status(PlanCreateParams.Status.ACTIVE) .build() @@ -126,6 +132,7 @@ class PlanCreateParamsTest { ) .metadata( PlanCreateParams.Price.NewPlanUnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) .build() @@ -134,7 +141,11 @@ class PlanCreateParamsTest { ) .defaultInvoiceMemo("default_invoice_memo") .externalPlanId("external_plan_id") - .metadata(PlanCreateParams.Metadata.builder().build()) + .metadata( + PlanCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .netTerms(0L) .status(PlanCreateParams.Status.ACTIVE) .build() @@ -188,7 +199,9 @@ class PlanCreateParamsTest { .build() ) .metadata( - PlanCreateParams.Price.NewPlanUnitPrice.Metadata.builder().build() + PlanCreateParams.Price.NewPlanUnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() ) .build() ) @@ -196,7 +209,12 @@ class PlanCreateParamsTest { ) assertThat(body.defaultInvoiceMemo()).isEqualTo("default_invoice_memo") assertThat(body.externalPlanId()).isEqualTo("external_plan_id") - assertThat(body.metadata()).isEqualTo(PlanCreateParams.Metadata.builder().build()) + assertThat(body.metadata()) + .isEqualTo( + PlanCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(body.netTerms()).isEqualTo(0L) assertThat(body.status()).isEqualTo(PlanCreateParams.Status.ACTIVE) } diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanExternalPlanIdFetchParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanExternalPlanIdFetchParamsTest.kt index ed9e2a73..ca0db4c3 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanExternalPlanIdFetchParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanExternalPlanIdFetchParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanExternalPlanIdUpdateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanExternalPlanIdUpdateParamsTest.kt index 42e68eba..23b03df8 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanExternalPlanIdUpdateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanExternalPlanIdUpdateParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -13,7 +13,11 @@ class PlanExternalPlanIdUpdateParamsTest { PlanExternalPlanIdUpdateParams.builder() .otherExternalPlanId("external_plan_id") .externalPlanId("external_plan_id") - .metadata(PlanExternalPlanIdUpdateParams.Metadata.builder().build()) + .metadata( + PlanExternalPlanIdUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() } @@ -23,13 +27,21 @@ class PlanExternalPlanIdUpdateParamsTest { PlanExternalPlanIdUpdateParams.builder() .otherExternalPlanId("external_plan_id") .externalPlanId("external_plan_id") - .metadata(PlanExternalPlanIdUpdateParams.Metadata.builder().build()) + .metadata( + PlanExternalPlanIdUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() val body = params.getBody() assertThat(body).isNotNull assertThat(body.externalPlanId()).isEqualTo("external_plan_id") assertThat(body.metadata()) - .isEqualTo(PlanExternalPlanIdUpdateParams.Metadata.builder().build()) + .isEqualTo( + PlanExternalPlanIdUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) } @Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanFetchParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanFetchParamsTest.kt index 0870dd4e..782e10c8 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanFetchParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanFetchParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanListParamsTest.kt index 1f451e4e..d0206787 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanTest.kt index a00991a0..385120e8 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -46,7 +47,7 @@ class PlanTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -62,7 +63,11 @@ class PlanTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -80,7 +85,9 @@ class PlanTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -138,7 +145,9 @@ class PlanTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -166,7 +175,11 @@ class PlanTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -238,7 +251,7 @@ class PlanTest { .contains( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -255,7 +268,12 @@ class PlanTest { .build() ) assertThat(plan.maximumAmount()).contains("maximum_amount") - assertThat(plan.metadata()).isEqualTo(Plan.Metadata.builder().build()) + assertThat(plan.metadata()) + .isEqualTo( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(plan.minimum()) .contains( Plan.Minimum.builder() @@ -274,7 +292,7 @@ class PlanTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -328,7 +346,9 @@ class PlanTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -353,7 +373,11 @@ class PlanTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanUpdateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanUpdateParamsTest.kt index 2efa85a1..ac2ef30d 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanUpdateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/PlanUpdateParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -13,7 +13,11 @@ class PlanUpdateParamsTest { PlanUpdateParams.builder() .planId("plan_id") .externalPlanId("external_plan_id") - .metadata(PlanUpdateParams.Metadata.builder().build()) + .metadata( + PlanUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() } @@ -23,12 +27,21 @@ class PlanUpdateParamsTest { PlanUpdateParams.builder() .planId("plan_id") .externalPlanId("external_plan_id") - .metadata(PlanUpdateParams.Metadata.builder().build()) + .metadata( + PlanUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() val body = params.getBody() assertThat(body).isNotNull assertThat(body.externalPlanId()).isEqualTo("external_plan_id") - assertThat(body.metadata()).isEqualTo(PlanUpdateParams.Metadata.builder().build()) + assertThat(body.metadata()) + .isEqualTo( + PlanUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) } @Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceCreateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceCreateParamsTest.kt index 022caaed..4c0ae8ca 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceCreateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceCreateParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import org.junit.jupiter.api.Test class PriceCreateParamsTest { @@ -48,7 +48,11 @@ class PriceCreateParamsTest { ) .build() ) - .metadata(PriceCreateParams.NewFloatingUnitPrice.Metadata.builder().build()) + .metadata( + PriceCreateParams.NewFloatingUnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() ) .build() diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceEvaluateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceEvaluateParamsTest.kt index b7121ef4..c15da8ef 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceEvaluateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceEvaluateParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -18,7 +17,7 @@ class PriceEvaluateParamsTest { .customerId("customer_id") .externalCustomerId("external_customer_id") .filter("my_numeric_property > 100 AND my_other_property = 'bar'") - .groupingKeys(listOf("string")) + .groupingKeys(listOf("case when my_event_type = 'foo' then true else false end")) .build() } @@ -32,7 +31,7 @@ class PriceEvaluateParamsTest { .customerId("customer_id") .externalCustomerId("external_customer_id") .filter("my_numeric_property > 100 AND my_other_property = 'bar'") - .groupingKeys(listOf("string")) + .groupingKeys(listOf("case when my_event_type = 'foo' then true else false end")) .build() val body = params.getBody() assertThat(body).isNotNull @@ -43,7 +42,8 @@ class PriceEvaluateParamsTest { assertThat(body.externalCustomerId()).isEqualTo("external_customer_id") assertThat(body.filter()) .isEqualTo("my_numeric_property > 100 AND my_other_property = 'bar'") - assertThat(body.groupingKeys()).isEqualTo(listOf("string")) + assertThat(body.groupingKeys()) + .isEqualTo(listOf("case when my_event_type = 'foo' then true else false end")) } @Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceExternalPriceIdFetchParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceExternalPriceIdFetchParamsTest.kt index 01ca0655..e730fba0 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceExternalPriceIdFetchParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceExternalPriceIdFetchParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceExternalPriceIdUpdateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceExternalPriceIdUpdateParamsTest.kt index fa0b12ac..09d738bf 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceExternalPriceIdUpdateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceExternalPriceIdUpdateParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -12,7 +12,11 @@ class PriceExternalPriceIdUpdateParamsTest { fun createPriceExternalPriceIdUpdateParams() { PriceExternalPriceIdUpdateParams.builder() .externalPriceId("external_price_id") - .metadata(PriceExternalPriceIdUpdateParams.Metadata.builder().build()) + .metadata( + PriceExternalPriceIdUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() } @@ -21,12 +25,20 @@ class PriceExternalPriceIdUpdateParamsTest { val params = PriceExternalPriceIdUpdateParams.builder() .externalPriceId("external_price_id") - .metadata(PriceExternalPriceIdUpdateParams.Metadata.builder().build()) + .metadata( + PriceExternalPriceIdUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() val body = params.getBody() assertThat(body).isNotNull assertThat(body.metadata()) - .isEqualTo(PriceExternalPriceIdUpdateParams.Metadata.builder().build()) + .isEqualTo( + PriceExternalPriceIdUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) } @Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceFetchParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceFetchParamsTest.kt index 410bc957..ba45f289 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceFetchParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceFetchParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceListParamsTest.kt index 4156f950..53f41a2f 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceUpdateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceUpdateParamsTest.kt index 0328b744..fc4b58ba 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceUpdateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/PriceUpdateParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -12,7 +12,11 @@ class PriceUpdateParamsTest { fun createPriceUpdateParams() { PriceUpdateParams.builder() .priceId("price_id") - .metadata(PriceUpdateParams.Metadata.builder().build()) + .metadata( + PriceUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() } @@ -21,11 +25,20 @@ class PriceUpdateParamsTest { val params = PriceUpdateParams.builder() .priceId("price_id") - .metadata(PriceUpdateParams.Metadata.builder().build()) + .metadata( + PriceUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() val body = params.getBody() assertThat(body).isNotNull - assertThat(body.metadata()).isEqualTo(PriceUpdateParams.Metadata.builder().build()) + assertThat(body.metadata()) + .isEqualTo( + PriceUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) } @Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCancelParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCancelParamsTest.kt index 9073ae79..cef444ff 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCancelParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCancelParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCancelResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCancelResponseTest.kt index afb2e4a5..d3a7883c 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCancelResponseTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCancelResponseTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -80,7 +81,11 @@ class SubscriptionCancelResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -171,7 +176,11 @@ class SubscriptionCancelResponseTest { .build() ) ) - .metadata(SubscriptionCancelResponse.Metadata.builder().build()) + .metadata( + SubscriptionCancelResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimumIntervals( listOf( SubscriptionCancelResponse.MinimumInterval.builder() @@ -220,7 +229,9 @@ class SubscriptionCancelResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -236,7 +247,11 @@ class SubscriptionCancelResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -254,7 +269,9 @@ class SubscriptionCancelResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -317,7 +334,12 @@ class SubscriptionCancelResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -351,7 +373,14 @@ class SubscriptionCancelResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -446,7 +475,12 @@ class SubscriptionCancelResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -480,7 +514,14 @@ class SubscriptionCancelResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -591,7 +632,11 @@ class SubscriptionCancelResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -678,7 +723,11 @@ class SubscriptionCancelResponseTest { .build() ) assertThat(subscriptionCancelResponse.metadata()) - .isEqualTo(SubscriptionCancelResponse.Metadata.builder().build()) + .isEqualTo( + SubscriptionCancelResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(subscriptionCancelResponse.minimumIntervals()) .containsExactly( SubscriptionCancelResponse.MinimumInterval.builder() @@ -727,7 +776,7 @@ class SubscriptionCancelResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -743,7 +792,11 @@ class SubscriptionCancelResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -761,7 +814,9 @@ class SubscriptionCancelResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -822,7 +877,9 @@ class SubscriptionCancelResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -853,7 +910,11 @@ class SubscriptionCancelResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -938,7 +999,9 @@ class SubscriptionCancelResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -966,7 +1029,11 @@ class SubscriptionCancelResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCreateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCreateParamsTest.kt index 0dd11732..224edbe5 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCreateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCreateParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.JsonValue -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -28,7 +27,7 @@ class SubscriptionCreateParamsTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -129,6 +128,7 @@ class SubscriptionCreateParamsTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) .referenceId("reference_id") @@ -162,7 +162,11 @@ class SubscriptionCreateParamsTest { .filter("my_property > 100 AND my_other_property = 'bar'") .initialPhaseOrder(2L) .invoicingThreshold("10.00") - .metadata(SubscriptionCreateParams.Metadata.builder().build()) + .metadata( + SubscriptionCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .netTerms(0L) .perCreditOverageAmount(0.0) .planId("ZMwNQefe7J3ecf7W") @@ -198,7 +202,7 @@ class SubscriptionCreateParamsTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -297,6 +301,7 @@ class SubscriptionCreateParamsTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) .referenceId("reference_id") @@ -331,7 +336,7 @@ class SubscriptionCreateParamsTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -432,6 +437,10 @@ class SubscriptionCreateParamsTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) .build() ) .referenceId("reference_id") @@ -465,7 +474,11 @@ class SubscriptionCreateParamsTest { .filter("my_property > 100 AND my_other_property = 'bar'") .initialPhaseOrder(2L) .invoicingThreshold("10.00") - .metadata(SubscriptionCreateParams.Metadata.builder().build()) + .metadata( + SubscriptionCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .netTerms(0L) .perCreditOverageAmount(0.0) .planId("ZMwNQefe7J3ecf7W") @@ -502,7 +515,7 @@ class SubscriptionCreateParamsTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -604,6 +617,10 @@ class SubscriptionCreateParamsTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) .build() ) .referenceId("reference_id") @@ -635,7 +652,7 @@ class SubscriptionCreateParamsTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -737,6 +754,7 @@ class SubscriptionCreateParamsTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) .referenceId("reference_id") @@ -773,7 +791,12 @@ class SubscriptionCreateParamsTest { assertThat(body.filter()).isEqualTo("my_property > 100 AND my_other_property = 'bar'") assertThat(body.initialPhaseOrder()).isEqualTo(2L) assertThat(body.invoicingThreshold()).isEqualTo("10.00") - assertThat(body.metadata()).isEqualTo(SubscriptionCreateParams.Metadata.builder().build()) + assertThat(body.metadata()) + .isEqualTo( + SubscriptionCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(body.netTerms()).isEqualTo(0L) assertThat(body.perCreditOverageAmount()).isEqualTo(0.0) assertThat(body.planId()).isEqualTo("ZMwNQefe7J3ecf7W") @@ -812,7 +835,7 @@ class SubscriptionCreateParamsTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -912,6 +935,7 @@ class SubscriptionCreateParamsTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) .referenceId("reference_id") diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCreateResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCreateResponseTest.kt index 59ac3928..1f86c0d3 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCreateResponseTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionCreateResponseTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -80,7 +81,11 @@ class SubscriptionCreateResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -171,7 +176,11 @@ class SubscriptionCreateResponseTest { .build() ) ) - .metadata(SubscriptionCreateResponse.Metadata.builder().build()) + .metadata( + SubscriptionCreateResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimumIntervals( listOf( SubscriptionCreateResponse.MinimumInterval.builder() @@ -220,7 +229,9 @@ class SubscriptionCreateResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -236,7 +247,11 @@ class SubscriptionCreateResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -254,7 +269,9 @@ class SubscriptionCreateResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -317,7 +334,12 @@ class SubscriptionCreateResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -351,7 +373,14 @@ class SubscriptionCreateResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -446,7 +475,12 @@ class SubscriptionCreateResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -480,7 +514,14 @@ class SubscriptionCreateResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -591,7 +632,11 @@ class SubscriptionCreateResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -678,7 +723,11 @@ class SubscriptionCreateResponseTest { .build() ) assertThat(subscriptionCreateResponse.metadata()) - .isEqualTo(SubscriptionCreateResponse.Metadata.builder().build()) + .isEqualTo( + SubscriptionCreateResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(subscriptionCreateResponse.minimumIntervals()) .containsExactly( SubscriptionCreateResponse.MinimumInterval.builder() @@ -727,7 +776,7 @@ class SubscriptionCreateResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -743,7 +792,11 @@ class SubscriptionCreateResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -761,7 +814,9 @@ class SubscriptionCreateResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -822,7 +877,9 @@ class SubscriptionCreateResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -853,7 +910,11 @@ class SubscriptionCreateResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -938,7 +999,9 @@ class SubscriptionCreateResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -966,7 +1029,11 @@ class SubscriptionCreateResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchCostsParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchCostsParamsTest.kt index 47303d2f..d4838182 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchCostsParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchCostsParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchCostsResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchCostsResponseTest.kt index 985b2f92..8448b074 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchCostsResponseTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchCostsResponseTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -56,7 +57,12 @@ class SubscriptionFetchCostsResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType .PERCENTAGE @@ -94,7 +100,12 @@ class SubscriptionFetchCostsResponseTest { ) .maximumAmount("maximum_amount") .metadata( - Price.UnitPrice.Metadata.builder().build() + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() ) .minimum( Price.UnitPrice.Minimum.builder() @@ -172,7 +183,12 @@ class SubscriptionFetchCostsResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType .PERCENTAGE @@ -208,7 +224,14 @@ class SubscriptionFetchCostsResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchParamsTest.kt index a49fca03..d5a361d7 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchScheduleParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchScheduleParamsTest.kt index 79697c98..3e51f96c 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchScheduleParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchScheduleParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchUsageParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchUsageParamsTest.kt index 9a231299..44fbeaee 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchUsageParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionFetchUsageParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionListParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionListParamsTest.kt index db57d65e..7e6f6c6c 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionListParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionListParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.http.QueryParams -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsParamsTest.kt index 42e3b819..ad2a1137 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -135,6 +135,7 @@ class SubscriptionPriceIntervalsParamsTest { .NewFloatingUnitPrice .Metadata .builder() + .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) .build() @@ -160,7 +161,7 @@ class SubscriptionPriceIntervalsParamsTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -355,6 +356,10 @@ class SubscriptionPriceIntervalsParamsTest { .NewFloatingUnitPrice .Metadata .builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) .build() ) .build() @@ -380,7 +385,7 @@ class SubscriptionPriceIntervalsParamsTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -570,6 +575,7 @@ class SubscriptionPriceIntervalsParamsTest { .NewFloatingUnitPrice .Metadata .builder() + .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) .build() @@ -596,7 +602,7 @@ class SubscriptionPriceIntervalsParamsTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsResponseTest.kt index cd0ee26c..da4f1e7c 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsResponseTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsResponseTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -82,7 +83,11 @@ class SubscriptionPriceIntervalsResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -175,7 +180,11 @@ class SubscriptionPriceIntervalsResponseTest { .build() ) ) - .metadata(SubscriptionPriceIntervalsResponse.Metadata.builder().build()) + .metadata( + SubscriptionPriceIntervalsResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimumIntervals( listOf( SubscriptionPriceIntervalsResponse.MinimumInterval.builder() @@ -224,7 +233,9 @@ class SubscriptionPriceIntervalsResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -240,7 +251,11 @@ class SubscriptionPriceIntervalsResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -258,7 +273,9 @@ class SubscriptionPriceIntervalsResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -321,7 +338,12 @@ class SubscriptionPriceIntervalsResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -355,7 +377,14 @@ class SubscriptionPriceIntervalsResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -450,7 +479,12 @@ class SubscriptionPriceIntervalsResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -484,7 +518,14 @@ class SubscriptionPriceIntervalsResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -596,7 +637,11 @@ class SubscriptionPriceIntervalsResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -687,7 +732,11 @@ class SubscriptionPriceIntervalsResponseTest { .build() ) assertThat(subscriptionPriceIntervalsResponse.metadata()) - .isEqualTo(SubscriptionPriceIntervalsResponse.Metadata.builder().build()) + .isEqualTo( + SubscriptionPriceIntervalsResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(subscriptionPriceIntervalsResponse.minimumIntervals()) .containsExactly( SubscriptionPriceIntervalsResponse.MinimumInterval.builder() @@ -736,7 +785,7 @@ class SubscriptionPriceIntervalsResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -752,7 +801,11 @@ class SubscriptionPriceIntervalsResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -770,7 +823,9 @@ class SubscriptionPriceIntervalsResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -831,7 +886,9 @@ class SubscriptionPriceIntervalsResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -862,7 +919,11 @@ class SubscriptionPriceIntervalsResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -948,7 +1009,9 @@ class SubscriptionPriceIntervalsResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -976,7 +1039,11 @@ class SubscriptionPriceIntervalsResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeParamsTest.kt index 24087f7a..81427835 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeParamsTest.kt @@ -3,7 +3,6 @@ package com.withorb.api.models import com.withorb.api.core.JsonValue -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -31,7 +30,7 @@ class SubscriptionSchedulePlanChangeParamsTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -137,6 +136,10 @@ class SubscriptionSchedulePlanChangeParamsTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) .build() ) .referenceId("reference_id") @@ -205,7 +208,7 @@ class SubscriptionSchedulePlanChangeParamsTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -311,6 +314,10 @@ class SubscriptionSchedulePlanChangeParamsTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) .build() ) .referenceId("reference_id") @@ -348,7 +355,7 @@ class SubscriptionSchedulePlanChangeParamsTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -456,6 +463,10 @@ class SubscriptionSchedulePlanChangeParamsTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) .build() ) .referenceId("reference_id") @@ -525,7 +536,7 @@ class SubscriptionSchedulePlanChangeParamsTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -639,6 +650,10 @@ class SubscriptionSchedulePlanChangeParamsTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) .build() ) .referenceId("reference_id") @@ -672,7 +687,7 @@ class SubscriptionSchedulePlanChangeParamsTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -779,6 +794,10 @@ class SubscriptionSchedulePlanChangeParamsTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) .build() ) .referenceId("reference_id") @@ -850,7 +869,7 @@ class SubscriptionSchedulePlanChangeParamsTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -957,6 +976,10 @@ class SubscriptionSchedulePlanChangeParamsTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) .build() ) .referenceId("reference_id") diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeResponseTest.kt index 7440256e..84aa4f7c 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeResponseTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeResponseTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -82,7 +83,11 @@ class SubscriptionSchedulePlanChangeResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -175,7 +180,11 @@ class SubscriptionSchedulePlanChangeResponseTest { .build() ) ) - .metadata(SubscriptionSchedulePlanChangeResponse.Metadata.builder().build()) + .metadata( + SubscriptionSchedulePlanChangeResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimumIntervals( listOf( SubscriptionSchedulePlanChangeResponse.MinimumInterval.builder() @@ -224,7 +233,9 @@ class SubscriptionSchedulePlanChangeResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -240,7 +251,11 @@ class SubscriptionSchedulePlanChangeResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -258,7 +273,9 @@ class SubscriptionSchedulePlanChangeResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -321,7 +338,12 @@ class SubscriptionSchedulePlanChangeResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -355,7 +377,14 @@ class SubscriptionSchedulePlanChangeResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -450,7 +479,12 @@ class SubscriptionSchedulePlanChangeResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -484,7 +518,14 @@ class SubscriptionSchedulePlanChangeResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -596,7 +637,11 @@ class SubscriptionSchedulePlanChangeResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -687,7 +732,11 @@ class SubscriptionSchedulePlanChangeResponseTest { .build() ) assertThat(subscriptionSchedulePlanChangeResponse.metadata()) - .isEqualTo(SubscriptionSchedulePlanChangeResponse.Metadata.builder().build()) + .isEqualTo( + SubscriptionSchedulePlanChangeResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(subscriptionSchedulePlanChangeResponse.minimumIntervals()) .containsExactly( SubscriptionSchedulePlanChangeResponse.MinimumInterval.builder() @@ -736,7 +785,7 @@ class SubscriptionSchedulePlanChangeResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -752,7 +801,11 @@ class SubscriptionSchedulePlanChangeResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -770,7 +823,9 @@ class SubscriptionSchedulePlanChangeResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -831,7 +886,9 @@ class SubscriptionSchedulePlanChangeResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -862,7 +919,11 @@ class SubscriptionSchedulePlanChangeResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -948,7 +1009,9 @@ class SubscriptionSchedulePlanChangeResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -976,7 +1039,11 @@ class SubscriptionSchedulePlanChangeResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionTest.kt index 433a9d1d..ece0c804 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -79,7 +80,11 @@ class SubscriptionTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -168,7 +173,11 @@ class SubscriptionTest { .build() ) ) - .metadata(Subscription.Metadata.builder().build()) + .metadata( + Subscription.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimumIntervals( listOf( Subscription.MinimumInterval.builder() @@ -217,7 +226,9 @@ class SubscriptionTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -233,7 +244,11 @@ class SubscriptionTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -251,7 +266,9 @@ class SubscriptionTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -314,7 +331,12 @@ class SubscriptionTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -348,7 +370,14 @@ class SubscriptionTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -441,7 +470,12 @@ class SubscriptionTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -475,7 +509,14 @@ class SubscriptionTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -584,7 +625,11 @@ class SubscriptionTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -668,7 +713,12 @@ class SubscriptionTest { .startDate(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) .build() ) - assertThat(subscription.metadata()).isEqualTo(Subscription.Metadata.builder().build()) + assertThat(subscription.metadata()) + .isEqualTo( + Subscription.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(subscription.minimumIntervals()) .containsExactly( Subscription.MinimumInterval.builder() @@ -717,7 +767,7 @@ class SubscriptionTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -733,7 +783,11 @@ class SubscriptionTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -751,7 +805,9 @@ class SubscriptionTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -812,7 +868,9 @@ class SubscriptionTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -843,7 +901,11 @@ class SubscriptionTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -927,7 +989,9 @@ class SubscriptionTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -955,7 +1019,11 @@ class SubscriptionTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseParamsTest.kt index 86043cf8..b04e9441 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import java.time.LocalDate import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseResponseTest.kt index 78f98908..72914b02 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseResponseTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseResponseTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -81,7 +82,11 @@ class SubscriptionTriggerPhaseResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -172,7 +177,11 @@ class SubscriptionTriggerPhaseResponseTest { .build() ) ) - .metadata(SubscriptionTriggerPhaseResponse.Metadata.builder().build()) + .metadata( + SubscriptionTriggerPhaseResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimumIntervals( listOf( SubscriptionTriggerPhaseResponse.MinimumInterval.builder() @@ -221,7 +230,9 @@ class SubscriptionTriggerPhaseResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -237,7 +248,11 @@ class SubscriptionTriggerPhaseResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -255,7 +270,9 @@ class SubscriptionTriggerPhaseResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -318,7 +335,12 @@ class SubscriptionTriggerPhaseResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -352,7 +374,14 @@ class SubscriptionTriggerPhaseResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -447,7 +476,12 @@ class SubscriptionTriggerPhaseResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -481,7 +515,14 @@ class SubscriptionTriggerPhaseResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -593,7 +634,11 @@ class SubscriptionTriggerPhaseResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -683,7 +728,11 @@ class SubscriptionTriggerPhaseResponseTest { .build() ) assertThat(subscriptionTriggerPhaseResponse.metadata()) - .isEqualTo(SubscriptionTriggerPhaseResponse.Metadata.builder().build()) + .isEqualTo( + SubscriptionTriggerPhaseResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(subscriptionTriggerPhaseResponse.minimumIntervals()) .containsExactly( SubscriptionTriggerPhaseResponse.MinimumInterval.builder() @@ -732,7 +781,7 @@ class SubscriptionTriggerPhaseResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -748,7 +797,11 @@ class SubscriptionTriggerPhaseResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -766,7 +819,9 @@ class SubscriptionTriggerPhaseResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -827,7 +882,9 @@ class SubscriptionTriggerPhaseResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -858,7 +915,11 @@ class SubscriptionTriggerPhaseResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -944,7 +1005,9 @@ class SubscriptionTriggerPhaseResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -972,7 +1035,11 @@ class SubscriptionTriggerPhaseResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationParamsTest.kt index 531b8bdb..162186d2 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationResponseTest.kt index e5fe2d8a..eb694531 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationResponseTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationResponseTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -85,7 +86,11 @@ class SubscriptionUnscheduleCancellationResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -179,7 +184,11 @@ class SubscriptionUnscheduleCancellationResponseTest { .build() ) ) - .metadata(SubscriptionUnscheduleCancellationResponse.Metadata.builder().build()) + .metadata( + SubscriptionUnscheduleCancellationResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimumIntervals( listOf( SubscriptionUnscheduleCancellationResponse.MinimumInterval.builder() @@ -228,7 +237,9 @@ class SubscriptionUnscheduleCancellationResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -244,7 +255,11 @@ class SubscriptionUnscheduleCancellationResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -262,7 +277,9 @@ class SubscriptionUnscheduleCancellationResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -325,7 +342,12 @@ class SubscriptionUnscheduleCancellationResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -359,7 +381,14 @@ class SubscriptionUnscheduleCancellationResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -454,7 +483,12 @@ class SubscriptionUnscheduleCancellationResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -488,7 +522,14 @@ class SubscriptionUnscheduleCancellationResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -602,7 +643,11 @@ class SubscriptionUnscheduleCancellationResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -695,7 +740,11 @@ class SubscriptionUnscheduleCancellationResponseTest { .build() ) assertThat(subscriptionUnscheduleCancellationResponse.metadata()) - .isEqualTo(SubscriptionUnscheduleCancellationResponse.Metadata.builder().build()) + .isEqualTo( + SubscriptionUnscheduleCancellationResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(subscriptionUnscheduleCancellationResponse.minimumIntervals()) .containsExactly( SubscriptionUnscheduleCancellationResponse.MinimumInterval.builder() @@ -744,7 +793,7 @@ class SubscriptionUnscheduleCancellationResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -760,7 +809,11 @@ class SubscriptionUnscheduleCancellationResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -778,7 +831,9 @@ class SubscriptionUnscheduleCancellationResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -839,7 +894,9 @@ class SubscriptionUnscheduleCancellationResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -870,7 +927,11 @@ class SubscriptionUnscheduleCancellationResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -956,7 +1017,9 @@ class SubscriptionUnscheduleCancellationResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -984,7 +1047,11 @@ class SubscriptionUnscheduleCancellationResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesParamsTest.kt index 6d6ba3e2..c0d1349d 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest.kt index b6d6d145..aaf17905 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -88,7 +89,11 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -187,7 +192,9 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { ) ) .metadata( - SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse.Metadata.builder().build() + SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() ) .minimumIntervals( listOf( @@ -238,7 +245,9 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -254,7 +263,11 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -272,7 +285,9 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -335,7 +350,12 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -369,7 +389,14 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -466,7 +493,12 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -500,7 +532,14 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -629,7 +668,11 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -725,7 +768,9 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { ) assertThat(subscriptionUnscheduleFixedFeeQuantityUpdatesResponse.metadata()) .isEqualTo( - SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse.Metadata.builder().build() + SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() ) assertThat(subscriptionUnscheduleFixedFeeQuantityUpdatesResponse.minimumIntervals()) .containsExactly( @@ -775,7 +820,7 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -791,7 +836,11 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -809,7 +858,9 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -870,7 +921,9 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -901,7 +954,11 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -987,7 +1044,9 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -1015,7 +1074,11 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesParamsTest.kt index afc5b92e..fac0700b 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesResponseTest.kt index 86d4700a..00f35131 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesResponseTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesResponseTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -86,7 +87,11 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -182,7 +187,9 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { ) ) .metadata( - SubscriptionUnschedulePendingPlanChangesResponse.Metadata.builder().build() + SubscriptionUnschedulePendingPlanChangesResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() ) .minimumIntervals( listOf( @@ -232,7 +239,9 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -248,7 +257,11 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -266,7 +279,9 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -329,7 +344,12 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -363,7 +383,14 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -458,7 +485,12 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -492,7 +524,14 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -611,7 +650,11 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -704,7 +747,11 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .build() ) assertThat(subscriptionUnschedulePendingPlanChangesResponse.metadata()) - .isEqualTo(SubscriptionUnschedulePendingPlanChangesResponse.Metadata.builder().build()) + .isEqualTo( + SubscriptionUnschedulePendingPlanChangesResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(subscriptionUnschedulePendingPlanChangesResponse.minimumIntervals()) .containsExactly( SubscriptionUnschedulePendingPlanChangesResponse.MinimumInterval.builder() @@ -753,7 +800,7 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -769,7 +816,11 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -787,7 +838,9 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -848,7 +901,9 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -879,7 +934,11 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -965,7 +1024,9 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -993,7 +1054,11 @@ class SubscriptionUnschedulePendingPlanChangesResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityParamsTest.kt index 55b2ad20..6db31bff 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import java.time.LocalDate import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityResponseTest.kt index 1abfe382..236b1175 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityResponseTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityResponseTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -85,7 +86,11 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -179,7 +184,11 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .build() ) ) - .metadata(SubscriptionUpdateFixedFeeQuantityResponse.Metadata.builder().build()) + .metadata( + SubscriptionUpdateFixedFeeQuantityResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimumIntervals( listOf( SubscriptionUpdateFixedFeeQuantityResponse.MinimumInterval.builder() @@ -228,7 +237,9 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -244,7 +255,11 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -262,7 +277,9 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -325,7 +342,12 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -359,7 +381,14 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -454,7 +483,12 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -488,7 +522,14 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -602,7 +643,11 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -695,7 +740,11 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .build() ) assertThat(subscriptionUpdateFixedFeeQuantityResponse.metadata()) - .isEqualTo(SubscriptionUpdateFixedFeeQuantityResponse.Metadata.builder().build()) + .isEqualTo( + SubscriptionUpdateFixedFeeQuantityResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(subscriptionUpdateFixedFeeQuantityResponse.minimumIntervals()) .containsExactly( SubscriptionUpdateFixedFeeQuantityResponse.MinimumInterval.builder() @@ -744,7 +793,7 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -760,7 +809,11 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -778,7 +831,9 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -839,7 +894,9 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -870,7 +927,11 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -956,7 +1017,9 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -984,7 +1047,11 @@ class SubscriptionUpdateFixedFeeQuantityResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateParamsTest.kt index 2fd3c0f5..e4f3fe46 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateParamsTest.kt @@ -2,7 +2,7 @@ package com.withorb.api.models -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -15,7 +15,11 @@ class SubscriptionUpdateParamsTest { .autoCollection(true) .defaultInvoiceMemo("default_invoice_memo") .invoicingThreshold("10.00") - .metadata(SubscriptionUpdateParams.Metadata.builder().build()) + .metadata( + SubscriptionUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .netTerms(0L) .build() } @@ -28,7 +32,11 @@ class SubscriptionUpdateParamsTest { .autoCollection(true) .defaultInvoiceMemo("default_invoice_memo") .invoicingThreshold("10.00") - .metadata(SubscriptionUpdateParams.Metadata.builder().build()) + .metadata( + SubscriptionUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .netTerms(0L) .build() val body = params.getBody() @@ -36,7 +44,12 @@ class SubscriptionUpdateParamsTest { assertThat(body.autoCollection()).isEqualTo(true) assertThat(body.defaultInvoiceMemo()).isEqualTo("default_invoice_memo") assertThat(body.invoicingThreshold()).isEqualTo("10.00") - assertThat(body.metadata()).isEqualTo(SubscriptionUpdateParams.Metadata.builder().build()) + assertThat(body.metadata()) + .isEqualTo( + SubscriptionUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(body.netTerms()).isEqualTo(0L) } diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateTrialParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateTrialParamsTest.kt index f73faeec..76ca4de0 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateTrialParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateTrialParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -15,7 +14,7 @@ class SubscriptionUpdateTrialParamsTest { .subscriptionId("subscription_id") .trialEndDate( SubscriptionUpdateTrialParams.TrialEndDate.ofOffsetDateTime( - OffsetDateTime.parse("2019-12-27T18:11:19.117Z") + OffsetDateTime.parse("2017-07-21T17:32:28Z") ) ) .shift(true) @@ -29,7 +28,7 @@ class SubscriptionUpdateTrialParamsTest { .subscriptionId("subscription_id") .trialEndDate( SubscriptionUpdateTrialParams.TrialEndDate.ofOffsetDateTime( - OffsetDateTime.parse("2019-12-27T18:11:19.117Z") + OffsetDateTime.parse("2017-07-21T17:32:28Z") ) ) .shift(true) @@ -39,7 +38,7 @@ class SubscriptionUpdateTrialParamsTest { assertThat(body.trialEndDate()) .isEqualTo( SubscriptionUpdateTrialParams.TrialEndDate.ofOffsetDateTime( - OffsetDateTime.parse("2019-12-27T18:11:19.117Z") + OffsetDateTime.parse("2017-07-21T17:32:28Z") ) ) assertThat(body.shift()).isEqualTo(true) @@ -52,7 +51,7 @@ class SubscriptionUpdateTrialParamsTest { .subscriptionId("subscription_id") .trialEndDate( SubscriptionUpdateTrialParams.TrialEndDate.ofOffsetDateTime( - OffsetDateTime.parse("2019-12-27T18:11:19.117Z") + OffsetDateTime.parse("2017-07-21T17:32:28Z") ) ) .build() @@ -61,7 +60,7 @@ class SubscriptionUpdateTrialParamsTest { assertThat(body.trialEndDate()) .isEqualTo( SubscriptionUpdateTrialParams.TrialEndDate.ofOffsetDateTime( - OffsetDateTime.parse("2019-12-27T18:11:19.117Z") + OffsetDateTime.parse("2017-07-21T17:32:28Z") ) ) } @@ -73,7 +72,7 @@ class SubscriptionUpdateTrialParamsTest { .subscriptionId("subscription_id") .trialEndDate( SubscriptionUpdateTrialParams.TrialEndDate.ofOffsetDateTime( - OffsetDateTime.parse("2019-12-27T18:11:19.117Z") + OffsetDateTime.parse("2017-07-21T17:32:28Z") ) ) .build() diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateTrialResponseTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateTrialResponseTest.kt index 31a8b262..70dc0439 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateTrialResponseTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionUpdateTrialResponseTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -81,7 +82,11 @@ class SubscriptionUpdateTrialResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -172,7 +177,11 @@ class SubscriptionUpdateTrialResponseTest { .build() ) ) - .metadata(SubscriptionUpdateTrialResponse.Metadata.builder().build()) + .metadata( + SubscriptionUpdateTrialResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimumIntervals( listOf( SubscriptionUpdateTrialResponse.MinimumInterval.builder() @@ -221,7 +230,9 @@ class SubscriptionUpdateTrialResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -237,7 +248,11 @@ class SubscriptionUpdateTrialResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -255,7 +270,9 @@ class SubscriptionUpdateTrialResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -318,7 +335,12 @@ class SubscriptionUpdateTrialResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -352,7 +374,14 @@ class SubscriptionUpdateTrialResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -447,7 +476,12 @@ class SubscriptionUpdateTrialResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -481,7 +515,14 @@ class SubscriptionUpdateTrialResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -593,7 +634,11 @@ class SubscriptionUpdateTrialResponseTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -683,7 +728,11 @@ class SubscriptionUpdateTrialResponseTest { .build() ) assertThat(subscriptionUpdateTrialResponse.metadata()) - .isEqualTo(SubscriptionUpdateTrialResponse.Metadata.builder().build()) + .isEqualTo( + SubscriptionUpdateTrialResponse.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) assertThat(subscriptionUpdateTrialResponse.minimumIntervals()) .containsExactly( SubscriptionUpdateTrialResponse.MinimumInterval.builder() @@ -732,7 +781,7 @@ class SubscriptionUpdateTrialResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -748,7 +797,11 @@ class SubscriptionUpdateTrialResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -766,7 +819,9 @@ class SubscriptionUpdateTrialResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -827,7 +882,9 @@ class SubscriptionUpdateTrialResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -858,7 +915,11 @@ class SubscriptionUpdateTrialResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -943,7 +1004,9 @@ class SubscriptionUpdateTrialResponseTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -971,7 +1034,11 @@ class SubscriptionUpdateTrialResponseTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionsTest.kt index acaf1b88..1ad00972 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/SubscriptionsTest.kt @@ -2,6 +2,7 @@ package com.withorb.api.models +import com.withorb.api.core.JsonValue import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -87,7 +88,11 @@ class SubscriptionsTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -184,7 +189,11 @@ class SubscriptionsTest { .build() ) ) - .metadata(Subscription.Metadata.builder().build()) + .metadata( + Subscription.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimumIntervals( listOf( Subscription.MinimumInterval.builder() @@ -234,7 +243,9 @@ class SubscriptionsTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -252,7 +263,11 @@ class SubscriptionsTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -270,7 +285,12 @@ class SubscriptionsTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType .PERCENTAGE @@ -340,7 +360,12 @@ class SubscriptionsTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType .PERCENTAGE @@ -378,7 +403,12 @@ class SubscriptionsTest { ) .maximumAmount("maximum_amount") .metadata( - Price.UnitPrice.Metadata.builder().build() + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() ) .minimum( Price.UnitPrice.Minimum.builder() @@ -486,7 +516,12 @@ class SubscriptionsTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType .PERCENTAGE @@ -524,7 +559,12 @@ class SubscriptionsTest { ) .maximumAmount("maximum_amount") .metadata( - Price.UnitPrice.Metadata.builder().build() + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() ) .minimum( Price.UnitPrice.Minimum.builder() @@ -643,7 +683,11 @@ class SubscriptionsTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -732,7 +776,11 @@ class SubscriptionsTest { .build() ) ) - .metadata(Subscription.Metadata.builder().build()) + .metadata( + Subscription.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimumIntervals( listOf( Subscription.MinimumInterval.builder() @@ -782,7 +830,9 @@ class SubscriptionsTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") + ) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -798,7 +848,11 @@ class SubscriptionsTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Plan.Metadata.builder().build()) + .metadata( + Plan.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .minimum( Plan.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -816,7 +870,12 @@ class SubscriptionsTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType.PERCENTAGE ) @@ -881,7 +940,12 @@ class SubscriptionsTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType .PERCENTAGE @@ -917,7 +981,14 @@ class SubscriptionsTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) @@ -1013,7 +1084,12 @@ class SubscriptionsTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds( + listOf( + "h74gfhdjvn7ujokd", + "7hfgtgjnbvc3ujkl" + ) + ) .discountType( PercentageDiscount.DiscountType .PERCENTAGE @@ -1049,7 +1125,14 @@ class SubscriptionsTest { .build() ) .maximumAmount("maximum_amount") - .metadata(Price.UnitPrice.Metadata.builder().build()) + .metadata( + Price.UnitPrice.Metadata.builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) + .build() + ) .minimum( Price.UnitPrice.Minimum.builder() .appliesToPriceIds(listOf("string")) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/TopLevelPingParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/TopLevelPingParamsTest.kt index ae077ace..07ab7b9f 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/TopLevelPingParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/TopLevelPingParamsTest.kt @@ -2,7 +2,6 @@ package com.withorb.api.models -import com.withorb.api.models.* import org.junit.jupiter.api.Test class TopLevelPingParamsTest { diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/models/TrialDiscountTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/models/TrialDiscountTest.kt index f0fd127c..8a13706d 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/models/TrialDiscountTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/models/TrialDiscountTest.kt @@ -11,14 +11,15 @@ class TrialDiscountTest { fun createTrialDiscount() { val trialDiscount = TrialDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(TrialDiscount.DiscountType.TRIAL) .reason("reason") .trialAmountDiscount("trial_amount_discount") .trialPercentageDiscount(0.0) .build() assertThat(trialDiscount).isNotNull - assertThat(trialDiscount.appliesToPriceIds()).containsExactly("string") + assertThat(trialDiscount.appliesToPriceIds()) + .containsExactly("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl") assertThat(trialDiscount.discountType()).isEqualTo(TrialDiscount.DiscountType.TRIAL) assertThat(trialDiscount.reason()).contains("reason") assertThat(trialDiscount.trialAmountDiscount()).contains("trial_amount_discount") diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/ErrorHandlingTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/ErrorHandlingTest.kt index 99585aa3..b2fe0be5 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/ErrorHandlingTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/ErrorHandlingTest.kt @@ -4,17 +4,15 @@ package com.withorb.api.services import com.fasterxml.jackson.databind.json.JsonMapper import com.github.tomakehurst.wiremock.client.WireMock.anyUrl -import com.github.tomakehurst.wiremock.client.WireMock.get import com.github.tomakehurst.wiremock.client.WireMock.ok import com.github.tomakehurst.wiremock.client.WireMock.post -import com.github.tomakehurst.wiremock.client.WireMock.put import com.github.tomakehurst.wiremock.client.WireMock.status import com.github.tomakehurst.wiremock.client.WireMock.stubFor import com.github.tomakehurst.wiremock.junit5.WireMockRuntimeInfo import com.github.tomakehurst.wiremock.junit5.WireMockTest import com.withorb.api.client.OrbClient import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.core.JsonString +import com.withorb.api.core.JsonValue import com.withorb.api.core.http.Headers import com.withorb.api.core.jsonMapper import com.withorb.api.errors.BadRequestException @@ -27,7 +25,8 @@ import com.withorb.api.errors.RateLimitException import com.withorb.api.errors.UnauthorizedException import com.withorb.api.errors.UnexpectedStatusCodeException import com.withorb.api.errors.UnprocessableEntityException -import com.withorb.api.models.* +import com.withorb.api.models.Customer +import com.withorb.api.models.CustomerCreateParams import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.assertj.core.api.Assertions.assertThatThrownBy @@ -41,7 +40,7 @@ class ErrorHandlingTest { private val JSON_MAPPER: JsonMapper = jsonMapper() private val ORB_ERROR: OrbError = - OrbError.builder().putAdditionalProperty("key", JsonString.of("value")).build() + OrbError.builder().putAdditionalProperty("key", JsonValue.from("value")).build() private lateinit var client: OrbClient @@ -90,7 +89,11 @@ class ErrorHandlingTest { .currency("currency") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerCreateParams.Metadata.builder().build()) + .metadata( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") .reportingConfiguration( @@ -151,7 +154,11 @@ class ErrorHandlingTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -236,7 +243,11 @@ class ErrorHandlingTest { .currency("currency") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerCreateParams.Metadata.builder().build()) + .metadata( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") .reportingConfiguration( @@ -321,7 +332,11 @@ class ErrorHandlingTest { .currency("currency") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerCreateParams.Metadata.builder().build()) + .metadata( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") .reportingConfiguration( @@ -406,7 +421,11 @@ class ErrorHandlingTest { .currency("currency") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerCreateParams.Metadata.builder().build()) + .metadata( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") .reportingConfiguration( @@ -491,7 +510,11 @@ class ErrorHandlingTest { .currency("currency") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerCreateParams.Metadata.builder().build()) + .metadata( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") .reportingConfiguration( @@ -576,7 +599,11 @@ class ErrorHandlingTest { .currency("currency") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerCreateParams.Metadata.builder().build()) + .metadata( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") .reportingConfiguration( @@ -661,7 +688,11 @@ class ErrorHandlingTest { .currency("currency") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerCreateParams.Metadata.builder().build()) + .metadata( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") .reportingConfiguration( @@ -746,7 +777,11 @@ class ErrorHandlingTest { .currency("currency") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerCreateParams.Metadata.builder().build()) + .metadata( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") .reportingConfiguration( @@ -831,7 +866,11 @@ class ErrorHandlingTest { .currency("currency") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerCreateParams.Metadata.builder().build()) + .metadata( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") .reportingConfiguration( @@ -921,7 +960,11 @@ class ErrorHandlingTest { .currency("currency") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerCreateParams.Metadata.builder().build()) + .metadata( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") .reportingConfiguration( @@ -1005,7 +1048,11 @@ class ErrorHandlingTest { .currency("currency") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerCreateParams.Metadata.builder().build()) + .metadata( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") .reportingConfiguration( diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/ServiceParamsTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/ServiceParamsTest.kt index 2853de6b..472d0362 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/ServiceParamsTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/ServiceParamsTest.kt @@ -5,22 +5,20 @@ package com.withorb.api.services import com.fasterxml.jackson.databind.json.JsonMapper import com.github.tomakehurst.wiremock.client.WireMock.anyUrl import com.github.tomakehurst.wiremock.client.WireMock.equalTo -import com.github.tomakehurst.wiremock.client.WireMock.get import com.github.tomakehurst.wiremock.client.WireMock.matchingJsonPath import com.github.tomakehurst.wiremock.client.WireMock.ok import com.github.tomakehurst.wiremock.client.WireMock.post import com.github.tomakehurst.wiremock.client.WireMock.postRequestedFor -import com.github.tomakehurst.wiremock.client.WireMock.put import com.github.tomakehurst.wiremock.client.WireMock.stubFor import com.github.tomakehurst.wiremock.client.WireMock.verify import com.github.tomakehurst.wiremock.junit5.WireMockRuntimeInfo import com.github.tomakehurst.wiremock.junit5.WireMockTest import com.withorb.api.client.OrbClient import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.core.JsonString import com.withorb.api.core.JsonValue import com.withorb.api.core.jsonMapper -import com.withorb.api.models.* +import com.withorb.api.models.Customer +import com.withorb.api.models.CustomerCreateParams import java.time.OffsetDateTime import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test @@ -54,7 +52,7 @@ class ServiceParamsTest { val additionalBodyProperties = mutableMapOf() - additionalBodyProperties.put("testBodyProperty", JsonString.of("ghi890")) + additionalBodyProperties.put("testBodyProperty", JsonValue.from("ghi890")) val params = CustomerCreateParams.builder() @@ -89,7 +87,11 @@ class ServiceParamsTest { .currency("currency") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerCreateParams.Metadata.builder().build()) + .metadata( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") .reportingConfiguration( @@ -153,7 +155,11 @@ class ServiceParamsTest { .emailDelivery(true) .exemptFromAutomatedTax(true) .externalCustomerId("external_customer_id") - .metadata(Customer.Metadata.builder().build()) + .metadata( + Customer.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(Customer.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/AlertServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/AlertServiceTest.kt index 18870aa5..cbe17365 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/AlertServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/AlertServiceTest.kt @@ -4,8 +4,14 @@ package com.withorb.api.services.blocking import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.models.AlertCreateForCustomerParams +import com.withorb.api.models.AlertCreateForExternalCustomerParams +import com.withorb.api.models.AlertCreateForSubscriptionParams +import com.withorb.api.models.AlertDisableParams +import com.withorb.api.models.AlertEnableParams import com.withorb.api.models.AlertListParams +import com.withorb.api.models.AlertRetrieveParams +import com.withorb.api.models.AlertUpdateParams import org.junit.jupiter.api.Disabled import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @@ -144,7 +150,10 @@ class AlertServiceTest { val alertService = client.alerts() val alert = alertService.disable( - AlertDisableParams.builder().alertConfigurationId("alert_configuration_id").build() + AlertDisableParams.builder() + .alertConfigurationId("alert_configuration_id") + .subscriptionId("subscription_id") + .build() ) println(alert) alert.validate() @@ -160,7 +169,10 @@ class AlertServiceTest { val alertService = client.alerts() val alert = alertService.enable( - AlertEnableParams.builder().alertConfigurationId("alert_configuration_id").build() + AlertEnableParams.builder() + .alertConfigurationId("alert_configuration_id") + .subscriptionId("subscription_id") + .build() ) println(alert) alert.validate() diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CouponServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CouponServiceTest.kt index b899ab46..af471647 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CouponServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CouponServiceTest.kt @@ -4,7 +4,9 @@ package com.withorb.api.services.blocking import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.models.CouponArchiveParams +import com.withorb.api.models.CouponCreateParams +import com.withorb.api.models.CouponFetchParams import com.withorb.api.models.CouponListParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CreditNoteServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CreditNoteServiceTest.kt index 2e75005f..12030528 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CreditNoteServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CreditNoteServiceTest.kt @@ -4,7 +4,8 @@ package com.withorb.api.services.blocking import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.models.CreditNoteCreateParams +import com.withorb.api.models.CreditNoteFetchParams import com.withorb.api.models.CreditNoteListParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CustomerServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CustomerServiceTest.kt index 08e4e43a..3664e5e0 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CustomerServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/CustomerServiceTest.kt @@ -4,8 +4,14 @@ package com.withorb.api.services.blocking import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue +import com.withorb.api.models.CustomerCreateParams +import com.withorb.api.models.CustomerDeleteParams +import com.withorb.api.models.CustomerFetchByExternalIdParams +import com.withorb.api.models.CustomerFetchParams import com.withorb.api.models.CustomerListParams +import com.withorb.api.models.CustomerUpdateByExternalIdParams +import com.withorb.api.models.CustomerUpdateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @@ -55,7 +61,11 @@ class CustomerServiceTest { .currency("currency") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerCreateParams.Metadata.builder().build()) + .metadata( + CustomerCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .paymentProvider(CustomerCreateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") .reportingConfiguration( @@ -142,7 +152,11 @@ class CustomerServiceTest { .email("dev@stainlessapi.com") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerUpdateParams.Metadata.builder().build()) + .metadata( + CustomerUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(CustomerUpdateParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") @@ -285,7 +299,11 @@ class CustomerServiceTest { .email("dev@stainlessapi.com") .emailDelivery(true) .externalCustomerId("external_customer_id") - .metadata(CustomerUpdateByExternalIdParams.Metadata.builder().build()) + .metadata( + CustomerUpdateByExternalIdParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .name("name") .paymentProvider(CustomerUpdateByExternalIdParams.PaymentProvider.QUICKBOOKS) .paymentProviderId("payment_provider_id") diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/EventServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/EventServiceTest.kt index 8abe8832..ef33abeb 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/EventServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/EventServiceTest.kt @@ -5,7 +5,10 @@ package com.withorb.api.services.blocking import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient import com.withorb.api.core.JsonValue -import com.withorb.api.models.* +import com.withorb.api.models.EventDeprecateParams +import com.withorb.api.models.EventIngestParams +import com.withorb.api.models.EventSearchParams +import com.withorb.api.models.EventUpdateParams import java.time.OffsetDateTime import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/InvoiceLineItemServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/InvoiceLineItemServiceTest.kt index f767794a..a4b36b6e 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/InvoiceLineItemServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/InvoiceLineItemServiceTest.kt @@ -4,7 +4,7 @@ package com.withorb.api.services.blocking import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.models.InvoiceLineItemCreateParams import java.time.LocalDate import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/InvoiceServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/InvoiceServiceTest.kt index 8067d25a..9b7024be 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/InvoiceServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/InvoiceServiceTest.kt @@ -4,8 +4,18 @@ package com.withorb.api.services.blocking import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue +import com.withorb.api.models.Discount +import com.withorb.api.models.InvoiceCreateParams +import com.withorb.api.models.InvoiceFetchParams +import com.withorb.api.models.InvoiceFetchUpcomingParams +import com.withorb.api.models.InvoiceIssueParams import com.withorb.api.models.InvoiceListParams +import com.withorb.api.models.InvoiceMarkPaidParams +import com.withorb.api.models.InvoicePayParams +import com.withorb.api.models.InvoiceUpdateParams +import com.withorb.api.models.InvoiceVoidInvoiceParams +import com.withorb.api.models.PercentageDiscount import java.time.LocalDate import java.time.OffsetDateTime import org.junit.jupiter.api.Test @@ -49,7 +59,7 @@ class InvoiceServiceTest { .discount( Discount.ofPercentageDiscount( PercentageDiscount.builder() - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")) .discountType(PercentageDiscount.DiscountType.PERCENTAGE) .percentageDiscount(0.15) .reason("reason") @@ -58,7 +68,11 @@ class InvoiceServiceTest { ) .externalCustomerId("external-customer-id") .memo("An optional memo for my invoice.") - .metadata(InvoiceCreateParams.Metadata.builder().build()) + .metadata( + InvoiceCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .willAutoIssue(false) .build() ) @@ -78,7 +92,11 @@ class InvoiceServiceTest { invoiceService.update( InvoiceUpdateParams.builder() .invoiceId("invoice_id") - .metadata(InvoiceUpdateParams.Metadata.builder().build()) + .metadata( + InvoiceUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() ) println(invoice) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/ItemServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/ItemServiceTest.kt index 19c4f379..d0d755dd 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/ItemServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/ItemServiceTest.kt @@ -4,8 +4,10 @@ package com.withorb.api.services.blocking import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.models.ItemCreateParams +import com.withorb.api.models.ItemFetchParams import com.withorb.api.models.ItemListParams +import com.withorb.api.models.ItemUpdateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/MetricServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/MetricServiceTest.kt index 211235f0..90cbe70c 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/MetricServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/MetricServiceTest.kt @@ -4,8 +4,11 @@ package com.withorb.api.services.blocking import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue +import com.withorb.api.models.MetricCreateParams +import com.withorb.api.models.MetricFetchParams import com.withorb.api.models.MetricListParams +import com.withorb.api.models.MetricUpdateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @@ -27,7 +30,11 @@ class MetricServiceTest { .itemId("item_id") .name("Bytes downloaded") .sql("SELECT sum(bytes_downloaded) FROM events WHERE download_speed = 'fast'") - .metadata(MetricCreateParams.Metadata.builder().build()) + .metadata( + MetricCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() ) println(billableMetric) @@ -46,7 +53,11 @@ class MetricServiceTest { metricService.update( MetricUpdateParams.builder() .metricId("metric_id") - .metadata(MetricUpdateParams.Metadata.builder().build()) + .metadata( + MetricUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() ) println(billableMetric) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/PlanServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/PlanServiceTest.kt index 163a1386..a9710a55 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/PlanServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/PlanServiceTest.kt @@ -4,8 +4,11 @@ package com.withorb.api.services.blocking import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue +import com.withorb.api.models.PlanCreateParams +import com.withorb.api.models.PlanFetchParams import com.withorb.api.models.PlanListParams +import com.withorb.api.models.PlanUpdateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @@ -75,6 +78,7 @@ class PlanServiceTest { ) .metadata( PlanCreateParams.Price.NewPlanUnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) .build() @@ -83,7 +87,11 @@ class PlanServiceTest { ) .defaultInvoiceMemo("default_invoice_memo") .externalPlanId("external_plan_id") - .metadata(PlanCreateParams.Metadata.builder().build()) + .metadata( + PlanCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .netTerms(0L) .status(PlanCreateParams.Status.ACTIVE) .build() @@ -105,7 +113,11 @@ class PlanServiceTest { PlanUpdateParams.builder() .planId("plan_id") .externalPlanId("external_plan_id") - .metadata(PlanUpdateParams.Metadata.builder().build()) + .metadata( + PlanUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() ) println(plan) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/PriceServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/PriceServiceTest.kt index 8762a3d7..9bcce51f 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/PriceServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/PriceServiceTest.kt @@ -4,8 +4,12 @@ package com.withorb.api.services.blocking import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue +import com.withorb.api.models.PriceCreateParams +import com.withorb.api.models.PriceEvaluateParams +import com.withorb.api.models.PriceFetchParams import com.withorb.api.models.PriceListParams +import com.withorb.api.models.PriceUpdateParams import java.time.OffsetDateTime import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @@ -67,7 +71,9 @@ class PriceServiceTest { .build() ) .metadata( - PriceCreateParams.NewFloatingUnitPrice.Metadata.builder().build() + PriceCreateParams.NewFloatingUnitPrice.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() ) .build() ) @@ -88,7 +94,11 @@ class PriceServiceTest { priceService.update( PriceUpdateParams.builder() .priceId("price_id") - .metadata(PriceUpdateParams.Metadata.builder().build()) + .metadata( + PriceUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() ) println(price) @@ -124,7 +134,9 @@ class PriceServiceTest { .customerId("customer_id") .externalCustomerId("external_customer_id") .filter("my_numeric_property > 100 AND my_other_property = 'bar'") - .groupingKeys(listOf("string")) + .groupingKeys( + listOf("case when my_event_type = 'foo' then true else false end") + ) .build() ) println(priceEvaluateResponse) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/SubscriptionServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/SubscriptionServiceTest.kt index f9d73b46..d42f09f9 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/SubscriptionServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/SubscriptionServiceTest.kt @@ -5,9 +5,22 @@ package com.withorb.api.services.blocking import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient import com.withorb.api.core.JsonValue -import com.withorb.api.models.* +import com.withorb.api.models.SubscriptionCancelParams +import com.withorb.api.models.SubscriptionCreateParams +import com.withorb.api.models.SubscriptionFetchCostsParams +import com.withorb.api.models.SubscriptionFetchParams import com.withorb.api.models.SubscriptionFetchScheduleParams +import com.withorb.api.models.SubscriptionFetchUsageParams import com.withorb.api.models.SubscriptionListParams +import com.withorb.api.models.SubscriptionPriceIntervalsParams +import com.withorb.api.models.SubscriptionSchedulePlanChangeParams +import com.withorb.api.models.SubscriptionTriggerPhaseParams +import com.withorb.api.models.SubscriptionUnscheduleCancellationParams +import com.withorb.api.models.SubscriptionUnscheduleFixedFeeQuantityUpdatesParams +import com.withorb.api.models.SubscriptionUnschedulePendingPlanChangesParams +import com.withorb.api.models.SubscriptionUpdateFixedFeeQuantityParams +import com.withorb.api.models.SubscriptionUpdateParams +import com.withorb.api.models.SubscriptionUpdateTrialParams import java.time.LocalDate import java.time.OffsetDateTime import org.junit.jupiter.api.Disabled @@ -44,7 +57,7 @@ class SubscriptionServiceTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -148,6 +161,10 @@ class SubscriptionServiceTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) .build() ) .referenceId("reference_id") @@ -181,7 +198,11 @@ class SubscriptionServiceTest { .filter("my_property > 100 AND my_other_property = 'bar'") .initialPhaseOrder(2L) .invoicingThreshold("10.00") - .metadata(SubscriptionCreateParams.Metadata.builder().build()) + .metadata( + SubscriptionCreateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .netTerms(0L) .perCreditOverageAmount(0.0) .planId("ZMwNQefe7J3ecf7W") @@ -218,7 +239,7 @@ class SubscriptionServiceTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -322,6 +343,10 @@ class SubscriptionServiceTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) .build() ) .referenceId("reference_id") @@ -355,7 +380,11 @@ class SubscriptionServiceTest { .autoCollection(true) .defaultInvoiceMemo("default_invoice_memo") .invoicingThreshold("10.00") - .metadata(SubscriptionUpdateParams.Metadata.builder().build()) + .metadata( + SubscriptionUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .netTerms(0L) .build() ) @@ -622,6 +651,10 @@ class SubscriptionServiceTest { .NewFloatingUnitPrice .Metadata .builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) .build() ) .build() @@ -648,7 +681,7 @@ class SubscriptionServiceTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -755,7 +788,7 @@ class SubscriptionServiceTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -871,6 +904,10 @@ class SubscriptionServiceTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) .build() ) .referenceId("reference_id") @@ -942,7 +979,7 @@ class SubscriptionServiceTest { .AdjustmentType .PERCENTAGE_DISCOUNT ) - .appliesToPriceIds(listOf("string")) + .appliesToPriceIds(listOf("price_1", "price_2")) .percentageDiscount(0.0) .isInvoiceLevel(true) .build() @@ -1062,6 +1099,10 @@ class SubscriptionServiceTest { .NewSubscriptionUnitPrice .Metadata .builder() + .putAdditionalProperty( + "foo", + JsonValue.from("string") + ) .build() ) .referenceId("reference_id") @@ -1189,7 +1230,7 @@ class SubscriptionServiceTest { .subscriptionId("subscription_id") .trialEndDate( SubscriptionUpdateTrialParams.TrialEndDate.ofOffsetDateTime( - OffsetDateTime.parse("2019-12-27T18:11:19.117Z") + OffsetDateTime.parse("2017-07-21T17:32:28Z") ) ) .shift(true) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/TopLevelServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/TopLevelServiceTest.kt index c4e3ccd2..1f1de436 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/TopLevelServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/TopLevelServiceTest.kt @@ -4,7 +4,7 @@ package com.withorb.api.services.blocking import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.models.TopLevelPingParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/coupons/SubscriptionServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/coupons/SubscriptionServiceTest.kt index a3755152..aba9b282 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/coupons/SubscriptionServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/coupons/SubscriptionServiceTest.kt @@ -4,7 +4,6 @@ package com.withorb.api.services.blocking.coupons import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* import com.withorb.api.models.CouponSubscriptionListParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/BalanceTransactionServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/BalanceTransactionServiceTest.kt index 75efa8cd..81ef234e 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/BalanceTransactionServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/BalanceTransactionServiceTest.kt @@ -4,7 +4,7 @@ package com.withorb.api.services.blocking.customers import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.models.CustomerBalanceTransactionCreateParams import com.withorb.api.models.CustomerBalanceTransactionListParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/CostServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/CostServiceTest.kt index 9c7ce478..271bcfae 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/CostServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/CostServiceTest.kt @@ -4,7 +4,8 @@ package com.withorb.api.services.blocking.customers import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.models.CustomerCostListByExternalIdParams +import com.withorb.api.models.CustomerCostListParams import java.time.OffsetDateTime import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/CreditServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/CreditServiceTest.kt index 4db23520..e782bef8 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/CreditServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/CreditServiceTest.kt @@ -4,7 +4,6 @@ package com.withorb.api.services.blocking.customers import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* import com.withorb.api.models.CustomerCreditListByExternalIdParams import com.withorb.api.models.CustomerCreditListParams import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/credits/LedgerServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/credits/LedgerServiceTest.kt index f64b7383..86401f9f 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/credits/LedgerServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/credits/LedgerServiceTest.kt @@ -4,7 +4,9 @@ package com.withorb.api.services.blocking.customers.credits import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue +import com.withorb.api.models.CustomerCreditLedgerCreateEntryByExternalIdParams +import com.withorb.api.models.CustomerCreditLedgerCreateEntryParams import com.withorb.api.models.CustomerCreditLedgerListByExternalIdParams import com.withorb.api.models.CustomerCreditLedgerListParams import java.time.OffsetDateTime @@ -73,6 +75,7 @@ class LedgerServiceTest { .AddIncrementCreditLedgerEntryRequestParams .Metadata .builder() + .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) .perUnitCostBasis("per_unit_cost_basis") @@ -126,6 +129,7 @@ class LedgerServiceTest { .AddIncrementCreditLedgerEntryRequestParams .Metadata .builder() + .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) .perUnitCostBasis("per_unit_cost_basis") diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/credits/TopUpServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/credits/TopUpServiceTest.kt index 1abdf7a8..ba56e233 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/credits/TopUpServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/customers/credits/TopUpServiceTest.kt @@ -4,7 +4,10 @@ package com.withorb.api.services.blocking.customers.credits import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.models.CustomerCreditTopUpCreateByExternalIdParams +import com.withorb.api.models.CustomerCreditTopUpCreateParams +import com.withorb.api.models.CustomerCreditTopUpDeleteByExternalIdParams +import com.withorb.api.models.CustomerCreditTopUpDeleteParams import com.withorb.api.models.CustomerCreditTopUpListByExternalIdParams import com.withorb.api.models.CustomerCreditTopUpListParams import org.junit.jupiter.api.Test diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/events/BackfillServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/events/BackfillServiceTest.kt index 275afa9b..248b6320 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/events/BackfillServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/events/BackfillServiceTest.kt @@ -4,8 +4,11 @@ package com.withorb.api.services.blocking.events import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.models.EventBackfillCloseParams +import com.withorb.api.models.EventBackfillCreateParams +import com.withorb.api.models.EventBackfillFetchParams import com.withorb.api.models.EventBackfillListParams +import com.withorb.api.models.EventBackfillRevertParams import java.time.OffsetDateTime import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/events/VolumeServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/events/VolumeServiceTest.kt index b47be161..dc76297a 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/events/VolumeServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/events/VolumeServiceTest.kt @@ -4,7 +4,7 @@ package com.withorb.api.services.blocking.events import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.models.EventVolumeListParams import java.time.OffsetDateTime import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/plans/ExternalPlanIdServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/plans/ExternalPlanIdServiceTest.kt index e96e00c2..e61b5770 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/plans/ExternalPlanIdServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/plans/ExternalPlanIdServiceTest.kt @@ -4,7 +4,9 @@ package com.withorb.api.services.blocking.plans import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue +import com.withorb.api.models.PlanExternalPlanIdFetchParams +import com.withorb.api.models.PlanExternalPlanIdUpdateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @@ -24,7 +26,11 @@ class ExternalPlanIdServiceTest { PlanExternalPlanIdUpdateParams.builder() .otherExternalPlanId("external_plan_id") .externalPlanId("external_plan_id") - .metadata(PlanExternalPlanIdUpdateParams.Metadata.builder().build()) + .metadata( + PlanExternalPlanIdUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() ) println(plan) diff --git a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/prices/ExternalPriceIdServiceTest.kt b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/prices/ExternalPriceIdServiceTest.kt index 426235b3..fdf3a480 100644 --- a/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/prices/ExternalPriceIdServiceTest.kt +++ b/orb-java-core/src/test/kotlin/com/withorb/api/services/blocking/prices/ExternalPriceIdServiceTest.kt @@ -4,7 +4,9 @@ package com.withorb.api.services.blocking.prices import com.withorb.api.TestServerExtension import com.withorb.api.client.okhttp.OrbOkHttpClient -import com.withorb.api.models.* +import com.withorb.api.core.JsonValue +import com.withorb.api.models.PriceExternalPriceIdFetchParams +import com.withorb.api.models.PriceExternalPriceIdUpdateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @@ -23,7 +25,11 @@ class ExternalPriceIdServiceTest { externalPriceIdService.update( PriceExternalPriceIdUpdateParams.builder() .externalPriceId("external_price_id") - .metadata(PriceExternalPriceIdUpdateParams.Metadata.builder().build()) + .metadata( + PriceExternalPriceIdUpdateParams.Metadata.builder() + .putAdditionalProperty("foo", JsonValue.from("string")) + .build() + ) .build() ) println(price)