@@ -36,8 +36,6 @@ private constructor(
3636
3737 private var validated: Boolean = false
3838
39- private var hashCode: Int = 0
40-
4139 fun accountHolder (): Optional <AccountHolder > =
4240 Optional .ofNullable(accountHolder.getNullable(" account_holder" ))
4341
@@ -160,44 +158,6 @@ private constructor(
160158
161159 fun toBuilder () = Builder ().from(this )
162160
163- override fun equals (other : Any? ): Boolean {
164- if (this == = other) {
165- return true
166- }
167-
168- return other is Account &&
169- this .accountHolder == other.accountHolder &&
170- this .authRuleTokens == other.authRuleTokens &&
171- this .cardholderCurrency == other.cardholderCurrency &&
172- this .spendLimit == other.spendLimit &&
173- this .state == other.state &&
174- this .token == other.token &&
175- this .verificationAddress == other.verificationAddress &&
176- this .created == other.created &&
177- this .additionalProperties == other.additionalProperties
178- }
179-
180- override fun hashCode (): Int {
181- if (hashCode == 0 ) {
182- hashCode =
183- Objects .hash(
184- accountHolder,
185- authRuleTokens,
186- cardholderCurrency,
187- spendLimit,
188- state,
189- token,
190- verificationAddress,
191- created,
192- additionalProperties,
193- )
194- }
195- return hashCode
196- }
197-
198- override fun toString () =
199- " Account{accountHolder=$accountHolder , authRuleTokens=$authRuleTokens , cardholderCurrency=$cardholderCurrency , spendLimit=$spendLimit , state=$state , token=$token , verificationAddress=$verificationAddress , created=$created , additionalProperties=$additionalProperties }"
200-
201161 companion object {
202162
203163 @JvmStatic fun builder () = Builder ()
@@ -397,8 +357,6 @@ private constructor(
397357
398358 private var validated: Boolean = false
399359
400- private var hashCode: Int = 0
401-
402360 /* * Daily spend limit (in cents). */
403361 fun daily (): Long = daily.getRequired(" daily" )
404362
@@ -432,34 +390,6 @@ private constructor(
432390
433391 fun toBuilder () = Builder ().from(this )
434392
435- override fun equals (other : Any? ): Boolean {
436- if (this == = other) {
437- return true
438- }
439-
440- return other is SpendLimit &&
441- this .daily == other.daily &&
442- this .lifetime == other.lifetime &&
443- this .monthly == other.monthly &&
444- this .additionalProperties == other.additionalProperties
445- }
446-
447- override fun hashCode (): Int {
448- if (hashCode == 0 ) {
449- hashCode =
450- Objects .hash(
451- daily,
452- lifetime,
453- monthly,
454- additionalProperties,
455- )
456- }
457- return hashCode
458- }
459-
460- override fun toString () =
461- " SpendLimit{daily=$daily , lifetime=$lifetime , monthly=$monthly , additionalProperties=$additionalProperties }"
462-
463393 companion object {
464394
465395 @JvmStatic fun builder () = Builder ()
@@ -526,6 +456,36 @@ private constructor(
526456 additionalProperties.toUnmodifiable(),
527457 )
528458 }
459+
460+ override fun equals (other : Any? ): Boolean {
461+ if (this == = other) {
462+ return true
463+ }
464+
465+ return other is SpendLimit &&
466+ this .daily == other.daily &&
467+ this .lifetime == other.lifetime &&
468+ this .monthly == other.monthly &&
469+ this .additionalProperties == other.additionalProperties
470+ }
471+
472+ private var hashCode: Int = 0
473+
474+ override fun hashCode (): Int {
475+ if (hashCode == 0 ) {
476+ hashCode =
477+ Objects .hash(
478+ daily,
479+ lifetime,
480+ monthly,
481+ additionalProperties,
482+ )
483+ }
484+ return hashCode
485+ }
486+
487+ override fun toString () =
488+ " SpendLimit{daily=$daily , lifetime=$lifetime , monthly=$monthly , additionalProperties=$additionalProperties }"
529489 }
530490
531491 class State
@@ -604,8 +564,6 @@ private constructor(
604564
605565 private var validated: Boolean = false
606566
607- private var hashCode: Int = 0
608-
609567 /* *
610568 * Only applicable for customers using the KYC-Exempt workflow to enroll authorized users of
611569 * businesses. Account_token of the enrolled business associated with an enrolled
@@ -657,36 +615,6 @@ private constructor(
657615
658616 fun toBuilder () = Builder ().from(this )
659617
660- override fun equals (other : Any? ): Boolean {
661- if (this == = other) {
662- return true
663- }
664-
665- return other is AccountHolder &&
666- this .businessAccountToken == other.businessAccountToken &&
667- this .email == other.email &&
668- this .phoneNumber == other.phoneNumber &&
669- this .token == other.token &&
670- this .additionalProperties == other.additionalProperties
671- }
672-
673- override fun hashCode (): Int {
674- if (hashCode == 0 ) {
675- hashCode =
676- Objects .hash(
677- businessAccountToken,
678- email,
679- phoneNumber,
680- token,
681- additionalProperties,
682- )
683- }
684- return hashCode
685- }
686-
687- override fun toString () =
688- " AccountHolder{businessAccountToken=$businessAccountToken , email=$email , phoneNumber=$phoneNumber , token=$token , additionalProperties=$additionalProperties }"
689-
690618 companion object {
691619
692620 @JvmStatic fun builder () = Builder ()
@@ -777,6 +705,38 @@ private constructor(
777705 additionalProperties.toUnmodifiable(),
778706 )
779707 }
708+
709+ override fun equals (other : Any? ): Boolean {
710+ if (this == = other) {
711+ return true
712+ }
713+
714+ return other is AccountHolder &&
715+ this .businessAccountToken == other.businessAccountToken &&
716+ this .email == other.email &&
717+ this .phoneNumber == other.phoneNumber &&
718+ this .token == other.token &&
719+ this .additionalProperties == other.additionalProperties
720+ }
721+
722+ private var hashCode: Int = 0
723+
724+ override fun hashCode (): Int {
725+ if (hashCode == 0 ) {
726+ hashCode =
727+ Objects .hash(
728+ businessAccountToken,
729+ email,
730+ phoneNumber,
731+ token,
732+ additionalProperties,
733+ )
734+ }
735+ return hashCode
736+ }
737+
738+ override fun toString () =
739+ " AccountHolder{businessAccountToken=$businessAccountToken , email=$email , phoneNumber=$phoneNumber , token=$token , additionalProperties=$additionalProperties }"
780740 }
781741
782742 @JsonDeserialize(builder = VerificationAddress .Builder ::class )
@@ -794,8 +754,6 @@ private constructor(
794754
795755 private var validated: Boolean = false
796756
797- private var hashCode: Int = 0
798-
799757 /* * Valid deliverable address (no PO boxes). */
800758 fun address1 (): String = address1.getRequired(" address1" )
801759
@@ -862,40 +820,6 @@ private constructor(
862820
863821 fun toBuilder () = Builder ().from(this )
864822
865- override fun equals (other : Any? ): Boolean {
866- if (this == = other) {
867- return true
868- }
869-
870- return other is VerificationAddress &&
871- this .address1 == other.address1 &&
872- this .address2 == other.address2 &&
873- this .city == other.city &&
874- this .country == other.country &&
875- this .postalCode == other.postalCode &&
876- this .state == other.state &&
877- this .additionalProperties == other.additionalProperties
878- }
879-
880- override fun hashCode (): Int {
881- if (hashCode == 0 ) {
882- hashCode =
883- Objects .hash(
884- address1,
885- address2,
886- city,
887- country,
888- postalCode,
889- state,
890- additionalProperties,
891- )
892- }
893- return hashCode
894- }
895-
896- override fun toString () =
897- " VerificationAddress{address1=$address1 , address2=$address2 , city=$city , country=$country , postalCode=$postalCode , state=$state , additionalProperties=$additionalProperties }"
898-
899823 companion object {
900824
901825 @JvmStatic fun builder () = Builder ()
@@ -1009,5 +933,81 @@ private constructor(
1009933 additionalProperties.toUnmodifiable(),
1010934 )
1011935 }
936+
937+ override fun equals (other : Any? ): Boolean {
938+ if (this == = other) {
939+ return true
940+ }
941+
942+ return other is VerificationAddress &&
943+ this .address1 == other.address1 &&
944+ this .address2 == other.address2 &&
945+ this .city == other.city &&
946+ this .country == other.country &&
947+ this .postalCode == other.postalCode &&
948+ this .state == other.state &&
949+ this .additionalProperties == other.additionalProperties
950+ }
951+
952+ private var hashCode: Int = 0
953+
954+ override fun hashCode (): Int {
955+ if (hashCode == 0 ) {
956+ hashCode =
957+ Objects .hash(
958+ address1,
959+ address2,
960+ city,
961+ country,
962+ postalCode,
963+ state,
964+ additionalProperties,
965+ )
966+ }
967+ return hashCode
968+ }
969+
970+ override fun toString () =
971+ " VerificationAddress{address1=$address1 , address2=$address2 , city=$city , country=$country , postalCode=$postalCode , state=$state , additionalProperties=$additionalProperties }"
972+ }
973+
974+ override fun equals (other : Any? ): Boolean {
975+ if (this == = other) {
976+ return true
977+ }
978+
979+ return other is Account &&
980+ this .accountHolder == other.accountHolder &&
981+ this .authRuleTokens == other.authRuleTokens &&
982+ this .cardholderCurrency == other.cardholderCurrency &&
983+ this .spendLimit == other.spendLimit &&
984+ this .state == other.state &&
985+ this .token == other.token &&
986+ this .verificationAddress == other.verificationAddress &&
987+ this .created == other.created &&
988+ this .additionalProperties == other.additionalProperties
989+ }
990+
991+ private var hashCode: Int = 0
992+
993+ override fun hashCode (): Int {
994+ if (hashCode == 0 ) {
995+ hashCode =
996+ Objects .hash(
997+ accountHolder,
998+ authRuleTokens,
999+ cardholderCurrency,
1000+ spendLimit,
1001+ state,
1002+ token,
1003+ verificationAddress,
1004+ created,
1005+ additionalProperties,
1006+ )
1007+ }
1008+ return hashCode
10121009 }
1010+
1011+ override fun toString () =
1012+ " Account{accountHolder=$accountHolder , authRuleTokens=$authRuleTokens , cardholderCurrency=$cardholderCurrency , spendLimit=$spendLimit , state=$state , token=$token , verificationAddress=$verificationAddress , created=$created , additionalProperties=$additionalProperties }"
10131013}
0 commit comments