@@ -86,15 +86,6 @@ private constructor(
8686 */
8787 fun autoIssuance (): Optional <Boolean > = body.autoIssuance()
8888
89- /* *
90- * Whether automatic tax calculation is enabled for this customer. When null, inherits from
91- * account-level setting. When true or false, overrides the account setting.
92- *
93- * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the server
94- * responded with an unexpected value).
95- */
96- fun automaticTaxEnabled (): Optional <Boolean > = body.automaticTaxEnabled()
97-
9889 /* *
9990 * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the server
10091 * responded with an unexpected value).
@@ -382,14 +373,6 @@ private constructor(
382373 */
383374 fun _autoIssuance (): JsonField <Boolean > = body._autoIssuance ()
384375
385- /* *
386- * Returns the raw JSON value of [automaticTaxEnabled].
387- *
388- * Unlike [automaticTaxEnabled], this method doesn't throw if the JSON field has an unexpected
389- * type.
390- */
391- fun _automaticTaxEnabled (): JsonField <Boolean > = body._automaticTaxEnabled ()
392-
393376 /* *
394377 * Returns the raw JSON value of [billingAddress].
395378 *
@@ -546,7 +529,7 @@ private constructor(
546529 * - [additionalEmails]
547530 * - [autoCollection]
548531 * - [autoIssuance]
549- * - [automaticTaxEnabled ]
532+ * - [billingAddress ]
550533 * - etc.
551534 */
552535 fun body (body : Body ) = apply { this .body = body.toBuilder() }
@@ -665,39 +648,6 @@ private constructor(
665648 body.autoIssuance(autoIssuance)
666649 }
667650
668- /* *
669- * Whether automatic tax calculation is enabled for this customer. When null, inherits from
670- * account-level setting. When true or false, overrides the account setting.
671- */
672- fun automaticTaxEnabled (automaticTaxEnabled : Boolean? ) = apply {
673- body.automaticTaxEnabled(automaticTaxEnabled)
674- }
675-
676- /* *
677- * Alias for [Builder.automaticTaxEnabled].
678- *
679- * This unboxed primitive overload exists for backwards compatibility.
680- */
681- fun automaticTaxEnabled (automaticTaxEnabled : Boolean ) =
682- automaticTaxEnabled(automaticTaxEnabled as Boolean? )
683-
684- /* *
685- * Alias for calling [Builder.automaticTaxEnabled] with `automaticTaxEnabled.orElse(null)`.
686- */
687- fun automaticTaxEnabled (automaticTaxEnabled : Optional <Boolean >) =
688- automaticTaxEnabled(automaticTaxEnabled.getOrNull())
689-
690- /* *
691- * Sets [Builder.automaticTaxEnabled] to an arbitrary JSON value.
692- *
693- * You should usually call [Builder.automaticTaxEnabled] with a well-typed [Boolean] value
694- * instead. This method is primarily for setting the field to an undocumented or not yet
695- * supported value.
696- */
697- fun automaticTaxEnabled (automaticTaxEnabled : JsonField <Boolean >) = apply {
698- body.automaticTaxEnabled(automaticTaxEnabled)
699- }
700-
701651 fun billingAddress (billingAddress : AddressInput ? ) = apply {
702652 body.billingAddress(billingAddress)
703653 }
@@ -1355,7 +1305,6 @@ private constructor(
13551305 private val additionalEmails: JsonField <List <String >>,
13561306 private val autoCollection: JsonField <Boolean >,
13571307 private val autoIssuance: JsonField <Boolean >,
1358- private val automaticTaxEnabled: JsonField <Boolean >,
13591308 private val billingAddress: JsonField <AddressInput >,
13601309 private val currency: JsonField <String >,
13611310 private val email: JsonField <String >,
@@ -1388,9 +1337,6 @@ private constructor(
13881337 @JsonProperty(" auto_issuance" )
13891338 @ExcludeMissing
13901339 autoIssuance: JsonField <Boolean > = JsonMissing .of(),
1391- @JsonProperty(" automatic_tax_enabled" )
1392- @ExcludeMissing
1393- automaticTaxEnabled: JsonField <Boolean > = JsonMissing .of(),
13941340 @JsonProperty(" billing_address" )
13951341 @ExcludeMissing
13961342 billingAddress: JsonField <AddressInput > = JsonMissing .of(),
@@ -1434,7 +1380,6 @@ private constructor(
14341380 additionalEmails,
14351381 autoCollection,
14361382 autoIssuance,
1437- automaticTaxEnabled,
14381383 billingAddress,
14391384 currency,
14401385 email,
@@ -1491,16 +1436,6 @@ private constructor(
14911436 */
14921437 fun autoIssuance (): Optional <Boolean > = autoIssuance.getOptional(" auto_issuance" )
14931438
1494- /* *
1495- * Whether automatic tax calculation is enabled for this customer. When null, inherits from
1496- * account-level setting. When true or false, overrides the account setting.
1497- *
1498- * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the
1499- * server responded with an unexpected value).
1500- */
1501- fun automaticTaxEnabled (): Optional <Boolean > =
1502- automaticTaxEnabled.getOptional(" automatic_tax_enabled" )
1503-
15041439 /* *
15051440 * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the
15061441 * server responded with an unexpected value).
@@ -1803,16 +1738,6 @@ private constructor(
18031738 @ExcludeMissing
18041739 fun _autoIssuance (): JsonField <Boolean > = autoIssuance
18051740
1806- /* *
1807- * Returns the raw JSON value of [automaticTaxEnabled].
1808- *
1809- * Unlike [automaticTaxEnabled], this method doesn't throw if the JSON field has an
1810- * unexpected type.
1811- */
1812- @JsonProperty(" automatic_tax_enabled" )
1813- @ExcludeMissing
1814- fun _automaticTaxEnabled (): JsonField <Boolean > = automaticTaxEnabled
1815-
18161741 /* *
18171742 * Returns the raw JSON value of [billingAddress].
18181743 *
@@ -1963,7 +1888,6 @@ private constructor(
19631888 private var additionalEmails: JsonField <MutableList <String >>? = null
19641889 private var autoCollection: JsonField <Boolean > = JsonMissing .of()
19651890 private var autoIssuance: JsonField <Boolean > = JsonMissing .of()
1966- private var automaticTaxEnabled: JsonField <Boolean > = JsonMissing .of()
19671891 private var billingAddress: JsonField <AddressInput > = JsonMissing .of()
19681892 private var currency: JsonField <String > = JsonMissing .of()
19691893 private var email: JsonField <String > = JsonMissing .of()
@@ -1987,7 +1911,6 @@ private constructor(
19871911 additionalEmails = body.additionalEmails.map { it.toMutableList() }
19881912 autoCollection = body.autoCollection
19891913 autoIssuance = body.autoIssuance
1990- automaticTaxEnabled = body.automaticTaxEnabled
19911914 billingAddress = body.billingAddress
19921915 currency = body.currency
19931916 email = body.email
@@ -2126,39 +2049,6 @@ private constructor(
21262049 this .autoIssuance = autoIssuance
21272050 }
21282051
2129- /* *
2130- * Whether automatic tax calculation is enabled for this customer. When null, inherits
2131- * from account-level setting. When true or false, overrides the account setting.
2132- */
2133- fun automaticTaxEnabled (automaticTaxEnabled : Boolean? ) =
2134- automaticTaxEnabled(JsonField .ofNullable(automaticTaxEnabled))
2135-
2136- /* *
2137- * Alias for [Builder.automaticTaxEnabled].
2138- *
2139- * This unboxed primitive overload exists for backwards compatibility.
2140- */
2141- fun automaticTaxEnabled (automaticTaxEnabled : Boolean ) =
2142- automaticTaxEnabled(automaticTaxEnabled as Boolean? )
2143-
2144- /* *
2145- * Alias for calling [Builder.automaticTaxEnabled] with
2146- * `automaticTaxEnabled.orElse(null)`.
2147- */
2148- fun automaticTaxEnabled (automaticTaxEnabled : Optional <Boolean >) =
2149- automaticTaxEnabled(automaticTaxEnabled.getOrNull())
2150-
2151- /* *
2152- * Sets [Builder.automaticTaxEnabled] to an arbitrary JSON value.
2153- *
2154- * You should usually call [Builder.automaticTaxEnabled] with a well-typed [Boolean]
2155- * value instead. This method is primarily for setting the field to an undocumented or
2156- * not yet supported value.
2157- */
2158- fun automaticTaxEnabled (automaticTaxEnabled : JsonField <Boolean >) = apply {
2159- this .automaticTaxEnabled = automaticTaxEnabled
2160- }
2161-
21622052 fun billingAddress (billingAddress : AddressInput ? ) =
21632053 billingAddress(JsonField .ofNullable(billingAddress))
21642054
@@ -2707,7 +2597,6 @@ private constructor(
27072597 (additionalEmails ? : JsonMissing .of()).map { it.toImmutable() },
27082598 autoCollection,
27092599 autoIssuance,
2710- automaticTaxEnabled,
27112600 billingAddress,
27122601 currency,
27132602 email,
@@ -2737,7 +2626,6 @@ private constructor(
27372626 additionalEmails()
27382627 autoCollection()
27392628 autoIssuance()
2740- automaticTaxEnabled()
27412629 billingAddress().ifPresent { it.validate() }
27422630 currency()
27432631 email()
@@ -2775,7 +2663,6 @@ private constructor(
27752663 (additionalEmails.asKnown().getOrNull()?.size ? : 0 ) +
27762664 (if (autoCollection.asKnown().isPresent) 1 else 0 ) +
27772665 (if (autoIssuance.asKnown().isPresent) 1 else 0 ) +
2778- (if (automaticTaxEnabled.asKnown().isPresent) 1 else 0 ) +
27792666 (billingAddress.asKnown().getOrNull()?.validity() ? : 0 ) +
27802667 (if (currency.asKnown().isPresent) 1 else 0 ) +
27812668 (if (email.asKnown().isPresent) 1 else 0 ) +
@@ -2801,7 +2688,6 @@ private constructor(
28012688 additionalEmails == other.additionalEmails &&
28022689 autoCollection == other.autoCollection &&
28032690 autoIssuance == other.autoIssuance &&
2804- automaticTaxEnabled == other.automaticTaxEnabled &&
28052691 billingAddress == other.billingAddress &&
28062692 currency == other.currency &&
28072693 email == other.email &&
@@ -2825,7 +2711,6 @@ private constructor(
28252711 additionalEmails,
28262712 autoCollection,
28272713 autoIssuance,
2828- automaticTaxEnabled,
28292714 billingAddress,
28302715 currency,
28312716 email,
@@ -2847,7 +2732,7 @@ private constructor(
28472732 override fun hashCode (): Int = hashCode
28482733
28492734 override fun toString () =
2850- " Body{accountingSyncConfiguration=$accountingSyncConfiguration , additionalEmails=$additionalEmails , autoCollection=$autoCollection , autoIssuance=$autoIssuance , automaticTaxEnabled= $automaticTaxEnabled , billingAddress=$billingAddress , currency=$currency , email=$email , emailDelivery=$emailDelivery , externalCustomerId=$externalCustomerId , hierarchy=$hierarchy , metadata=$metadata , name=$name , paymentProvider=$paymentProvider , paymentProviderId=$paymentProviderId , reportingConfiguration=$reportingConfiguration , shippingAddress=$shippingAddress , taxConfiguration=$taxConfiguration , taxId=$taxId , additionalProperties=$additionalProperties }"
2735+ " Body{accountingSyncConfiguration=$accountingSyncConfiguration , additionalEmails=$additionalEmails , autoCollection=$autoCollection , autoIssuance=$autoIssuance , billingAddress=$billingAddress , currency=$currency , email=$email , emailDelivery=$emailDelivery , externalCustomerId=$externalCustomerId , hierarchy=$hierarchy , metadata=$metadata , name=$name , paymentProvider=$paymentProvider , paymentProviderId=$paymentProviderId , reportingConfiguration=$reportingConfiguration , shippingAddress=$shippingAddress , taxConfiguration=$taxConfiguration , taxId=$taxId , additionalProperties=$additionalProperties }"
28512736 }
28522737
28532738 /* *
0 commit comments