Skip to content

Commit 1764089

Browse files
fix(client): deserialization of empty objects
1 parent 7e80bfe commit 1764089

File tree

290 files changed

+620
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

290 files changed

+620
-0
lines changed

orb-java-core/src/main/kotlin/com/withorb/api/models/AccountingProviderConfig.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import java.util.Collections
1616
import java.util.Objects
1717

1818
class AccountingProviderConfig
19+
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
1920
private constructor(
2021
private val externalProviderId: JsonField<String>,
2122
private val providerType: JsonField<String>,

orb-java-core/src/main/kotlin/com/withorb/api/models/Address.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import java.util.Optional
1818
import kotlin.jvm.optionals.getOrNull
1919

2020
class Address
21+
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
2122
private constructor(
2223
private val city: JsonField<String>,
2324
private val country: JsonField<String>,

orb-java-core/src/main/kotlin/com/withorb/api/models/AddressInput.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import java.util.Optional
1717
import kotlin.jvm.optionals.getOrNull
1818

1919
class AddressInput
20+
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
2021
private constructor(
2122
private val city: JsonField<String>,
2223
private val country: JsonField<String>,

orb-java-core/src/main/kotlin/com/withorb/api/models/AdjustmentInterval.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import java.util.Optional
3131
import kotlin.jvm.optionals.getOrNull
3232

3333
class AdjustmentInterval
34+
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
3435
private constructor(
3536
private val id: JsonField<String>,
3637
private val adjustment: JsonField<Adjustment>,

orb-java-core/src/main/kotlin/com/withorb/api/models/AffectedBlock.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import java.util.Optional
1919
import kotlin.jvm.optionals.getOrNull
2020

2121
class AffectedBlock
22+
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
2223
private constructor(
2324
private val id: JsonField<String>,
2425
private val expiryDate: JsonField<OffsetDateTime>,

orb-java-core/src/main/kotlin/com/withorb/api/models/AggregatedCost.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import java.util.Objects
2020
import kotlin.jvm.optionals.getOrNull
2121

2222
class AggregatedCost
23+
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
2324
private constructor(
2425
private val perPriceCosts: JsonField<List<PerPriceCost>>,
2526
private val subtotal: JsonField<String>,

orb-java-core/src/main/kotlin/com/withorb/api/models/Alert.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import kotlin.jvm.optionals.getOrNull
2828
* Alerts created through the API can be scoped to either customers or subscriptions.
2929
*/
3030
class Alert
31+
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
3132
private constructor(
3233
private val id: JsonField<String>,
3334
private val createdAt: JsonField<OffsetDateTime>,
@@ -616,6 +617,7 @@ private constructor(
616617

617618
/** The metric the alert applies to. */
618619
class Metric
620+
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
619621
private constructor(
620622
private val id: JsonField<String>,
621623
private val additionalProperties: MutableMap<String, JsonValue>,
@@ -768,6 +770,7 @@ private constructor(
768770

769771
/** The plan the alert applies to. */
770772
class Plan
773+
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
771774
private constructor(
772775
private val id: JsonField<String>,
773776
private val externalPlanId: JsonField<String>,
@@ -1206,6 +1209,7 @@ private constructor(
12061209

12071210
/** Alert status is used to determine if an alert is currently in-alert or not. */
12081211
class BalanceAlertStatus
1212+
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
12091213
private constructor(
12101214
private val inAlert: JsonField<Boolean>,
12111215
private val thresholdValue: JsonField<Double>,

orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForCustomerParams.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ private constructor(
340340
override fun _queryParams(): QueryParams = additionalQueryParams
341341

342342
class Body
343+
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
343344
private constructor(
344345
private val currency: JsonField<String>,
345346
private val type: JsonField<Type>,

orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForExternalCustomerParams.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ private constructor(
349349
override fun _queryParams(): QueryParams = additionalQueryParams
350350

351351
class Body
352+
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
352353
private constructor(
353354
private val currency: JsonField<String>,
354355
private val type: JsonField<Type>,

orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForSubscriptionParams.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ private constructor(
348348
override fun _queryParams(): QueryParams = additionalQueryParams
349349

350350
class Body
351+
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
351352
private constructor(
352353
private val thresholds: JsonField<List<Threshold>>,
353354
private val type: JsonField<Type>,

0 commit comments

Comments
 (0)