@@ -56,6 +56,7 @@ private constructor(
5656 private val currency: JsonField <String >,
5757 private val taxId: JsonField <TaxId >,
5858 private val autoCollection: JsonField <Boolean >,
59+ private val exemptFromAutomatedTax: JsonField <Boolean >,
5960 private val emailDelivery: JsonField <Boolean >,
6061 private val additionalEmails: JsonField <List <String >>,
6162 private val portalUrl: JsonField <String >,
@@ -238,6 +239,9 @@ private constructor(
238239
239240 fun autoCollection (): Boolean = autoCollection.getRequired(" auto_collection" )
240241
242+ fun exemptFromAutomatedTax (): Optional <Boolean > =
243+ Optional .ofNullable(exemptFromAutomatedTax.getNullable(" exempt_from_automated_tax" ))
244+
241245 fun emailDelivery (): Boolean = emailDelivery.getRequired(" email_delivery" )
242246
243247 fun additionalEmails (): List <String > = additionalEmails.getRequired(" additional_emails" )
@@ -421,6 +425,10 @@ private constructor(
421425
422426 @JsonProperty(" auto_collection" ) @ExcludeMissing fun _autoCollection () = autoCollection
423427
428+ @JsonProperty(" exempt_from_automated_tax" )
429+ @ExcludeMissing
430+ fun _exemptFromAutomatedTax () = exemptFromAutomatedTax
431+
424432 @JsonProperty(" email_delivery" ) @ExcludeMissing fun _emailDelivery () = emailDelivery
425433
426434 @JsonProperty(" additional_emails" ) @ExcludeMissing fun _additionalEmails () = additionalEmails
@@ -456,6 +464,7 @@ private constructor(
456464 currency()
457465 taxId().map { it.validate() }
458466 autoCollection()
467+ exemptFromAutomatedTax()
459468 emailDelivery()
460469 additionalEmails()
461470 portalUrl()
@@ -488,6 +497,7 @@ private constructor(
488497 this .currency == other.currency &&
489498 this .taxId == other.taxId &&
490499 this .autoCollection == other.autoCollection &&
500+ this .exemptFromAutomatedTax == other.exemptFromAutomatedTax &&
491501 this .emailDelivery == other.emailDelivery &&
492502 this .additionalEmails == other.additionalEmails &&
493503 this .portalUrl == other.portalUrl &&
@@ -515,6 +525,7 @@ private constructor(
515525 currency,
516526 taxId,
517527 autoCollection,
528+ exemptFromAutomatedTax,
518529 emailDelivery,
519530 additionalEmails,
520531 portalUrl,
@@ -527,7 +538,7 @@ private constructor(
527538 }
528539
529540 override fun toString () =
530- " Customer{metadata=$metadata , id=$id , externalCustomerId=$externalCustomerId , name=$name , email=$email , timezone=$timezone , paymentProviderId=$paymentProviderId , paymentProvider=$paymentProvider , createdAt=$createdAt , shippingAddress=$shippingAddress , billingAddress=$billingAddress , balance=$balance , currency=$currency , taxId=$taxId , autoCollection=$autoCollection , emailDelivery=$emailDelivery , additionalEmails=$additionalEmails , portalUrl=$portalUrl , accountingSyncConfiguration=$accountingSyncConfiguration , reportingConfiguration=$reportingConfiguration , additionalProperties=$additionalProperties }"
541+ " Customer{metadata=$metadata , id=$id , externalCustomerId=$externalCustomerId , name=$name , email=$email , timezone=$timezone , paymentProviderId=$paymentProviderId , paymentProvider=$paymentProvider , createdAt=$createdAt , shippingAddress=$shippingAddress , billingAddress=$billingAddress , balance=$balance , currency=$currency , taxId=$taxId , autoCollection=$autoCollection , exemptFromAutomatedTax= $exemptFromAutomatedTax , emailDelivery=$emailDelivery , additionalEmails=$additionalEmails , portalUrl=$portalUrl , accountingSyncConfiguration=$accountingSyncConfiguration , reportingConfiguration=$reportingConfiguration , additionalProperties=$additionalProperties }"
531542
532543 companion object {
533544
@@ -551,6 +562,7 @@ private constructor(
551562 private var currency: JsonField <String > = JsonMissing .of()
552563 private var taxId: JsonField <TaxId > = JsonMissing .of()
553564 private var autoCollection: JsonField <Boolean > = JsonMissing .of()
565+ private var exemptFromAutomatedTax: JsonField <Boolean > = JsonMissing .of()
554566 private var emailDelivery: JsonField <Boolean > = JsonMissing .of()
555567 private var additionalEmails: JsonField <List <String >> = JsonMissing .of()
556568 private var portalUrl: JsonField <String > = JsonMissing .of()
@@ -576,6 +588,7 @@ private constructor(
576588 this .currency = customer.currency
577589 this .taxId = customer.taxId
578590 this .autoCollection = customer.autoCollection
591+ this .exemptFromAutomatedTax = customer.exemptFromAutomatedTax
579592 this .emailDelivery = customer.emailDelivery
580593 this .additionalEmails = customer.additionalEmails
581594 this .portalUrl = customer.portalUrl
@@ -959,6 +972,15 @@ private constructor(
959972 this .autoCollection = autoCollection
960973 }
961974
975+ fun exemptFromAutomatedTax (exemptFromAutomatedTax : Boolean ) =
976+ exemptFromAutomatedTax(JsonField .of(exemptFromAutomatedTax))
977+
978+ @JsonProperty(" exempt_from_automated_tax" )
979+ @ExcludeMissing
980+ fun exemptFromAutomatedTax (exemptFromAutomatedTax : JsonField <Boolean >) = apply {
981+ this .exemptFromAutomatedTax = exemptFromAutomatedTax
982+ }
983+
962984 fun emailDelivery (emailDelivery : Boolean ) = emailDelivery(JsonField .of(emailDelivery))
963985
964986 @JsonProperty(" email_delivery" )
@@ -1032,6 +1054,7 @@ private constructor(
10321054 currency,
10331055 taxId,
10341056 autoCollection,
1057+ exemptFromAutomatedTax,
10351058 emailDelivery,
10361059 additionalEmails.map { it.toUnmodifiable() },
10371060 portalUrl,
0 commit comments