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 @@
-[](https://central.sonatype.com/artifact/com.withorb.api/orb-java/0.11.0)
+[](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