From 88d052f82390ba6540c971952f4def79fef78528 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 2 Oct 2024 18:03:40 +0000 Subject: [PATCH 1/3] style(client): move equals, hashCode, and toString to the bottom of entity files (#321) --- .../kotlin/com/lithic/api/models/Account.kt | 276 ++-- .../com/lithic/api/models/AccountHolder.kt | 344 ++--- .../api/models/AccountHolderCreateResponse.kt | 76 +- .../AccountHolderListDocumentsResponse.kt | 44 +- .../api/models/AccountHolderResubmitParams.kt | 136 +- ...rSimulateEnrollmentDocumentReviewParams.kt | 60 +- ...untHolderSimulateEnrollmentReviewParams.kt | 60 +- ...tHolderSimulateEnrollmentReviewResponse.kt | 484 +++--- .../api/models/AccountHolderUpdateParams.kt | 60 +- .../api/models/AccountHolderUpdateResponse.kt | 64 +- .../AccountHolderUploadDocumentParams.kt | 56 +- .../lithic/api/models/AccountSpendLimits.kt | 240 +-- .../lithic/api/models/AccountUpdateParams.kt | 140 +- .../kotlin/com/lithic/api/models/Address.kt | 72 +- .../com/lithic/api/models/AggregateBalance.kt | 88 +- .../models/AggregateBalanceListResponse.kt | 84 +- .../kotlin/com/lithic/api/models/ApiStatus.kt | 44 +- .../kotlin/com/lithic/api/models/AuthRule.kt | 84 +- .../lithic/api/models/AuthRuleApplyParams.kt | 60 +- .../lithic/api/models/AuthRuleCreateParams.kt | 76 +- .../models/AuthRuleMigrateV1ToV2Response.kt | 400 ++--- .../lithic/api/models/AuthRuleRemoveParams.kt | 60 +- .../api/models/AuthRuleRemoveResponse.kt | 60 +- .../api/models/AuthRuleRetrieveResponse.kt | 44 +- .../lithic/api/models/AuthRuleUpdateParams.kt | 64 +- .../api/models/AuthRuleV2ApplyParams.kt | 132 +- .../api/models/AuthRuleV2CreateParams.kt | 492 +++---- .../api/models/AuthRuleV2DraftParams.kt | 148 +- .../api/models/AuthRuleV2UpdateParams.kt | 44 +- .../com/lithic/api/models/AuthStreamSecret.kt | 44 +- .../models/AuthenticationRetrieveResponse.kt | 674 ++++----- .../models/AuthenticationSimulateResponse.kt | 56 +- .../kotlin/com/lithic/api/models/Balance.kt | 88 +- .../lithic/api/models/BalanceListResponse.kt | 88 +- .../api/models/BookTransferCreateParams.kt | 80 +- .../lithic/api/models/BookTransferResponse.kt | 176 +-- .../api/models/BookTransferReverseParams.kt | 44 +- .../main/kotlin/com/lithic/api/models/Card.kt | 212 +-- .../com/lithic/api/models/CardCreateParams.kt | 112 +- .../com/lithic/api/models/CardProgram.kt | 76 +- .../lithic/api/models/CardProvisionParams.kt | 72 +- .../api/models/CardProvisionResponse.kt | 44 +- .../lithic/api/models/CardReissueParams.kt | 64 +- .../com/lithic/api/models/CardRenewParams.kt | 72 +- .../api/models/CardSearchByPanParams.kt | 44 +- .../com/lithic/api/models/CardSpendLimits.kt | 240 +-- .../com/lithic/api/models/CardUpdateParams.kt | 76 +- .../kotlin/com/lithic/api/models/Carrier.kt | 44 +- .../DecisioningRetrieveSecretResponse.kt | 44 +- .../com/lithic/api/models/DigitalCardArt.kt | 76 +- .../kotlin/com/lithic/api/models/Dispute.kt | 124 +- .../lithic/api/models/DisputeCreateParams.kt | 68 +- .../com/lithic/api/models/DisputeEvidence.kt | 76 +- .../DisputeInitiateEvidenceUploadParams.kt | 44 +- .../lithic/api/models/DisputeUpdateParams.kt | 64 +- .../kotlin/com/lithic/api/models/Document.kt | 136 +- .../EnhancedCommercialDataRetrieveResponse.kt | 44 +- .../com/lithic/api/models/EnhancedData.kt | 456 +++--- .../kotlin/com/lithic/api/models/Event.kt | 102 +- .../lithic/api/models/EventSubscription.kt | 68 +- .../models/EventSubscriptionCreateParams.kt | 64 +- ...tSubscriptionSendSimulatedExampleParams.kt | 44 +- .../models/EventSubscriptionUpdateParams.kt | 64 +- .../com/lithic/api/models/ExtendedCredit.kt | 44 +- .../api/models/ExternalBankAccountAddress.kt | 72 +- .../models/ExternalBankAccountCreateParams.kt | 308 ++-- .../ExternalBankAccountCreateResponse.kt | 136 +- .../models/ExternalBankAccountListResponse.kt | 136 +- ...rnalBankAccountMicroDepositCreateParams.kt | 44 +- .../ExternalBankAccountRetrieveResponse.kt | 136 +- ...rnalBankAccountRetryMicroDepositsParams.kt | 44 +- ...alBankAccountRetryMicroDepositsResponse.kt | 136 +- .../ExternalBankAccountRetryPrenoteParams.kt | 44 +- ...ExternalBankAccountRetryPrenoteResponse.kt | 136 +- .../models/ExternalBankAccountUpdateParams.kt | 80 +- .../ExternalBankAccountUpdateResponse.kt | 136 +- .../com/lithic/api/models/ExternalPayment.kt | 180 +-- .../api/models/ExternalPaymentCancelParams.kt | 56 +- .../api/models/ExternalPaymentCreateParams.kt | 84 +- .../models/ExternalPaymentReleaseParams.kt | 56 +- .../models/ExternalPaymentReverseParams.kt | 56 +- .../api/models/ExternalPaymentSettleParams.kt | 60 +- .../com/lithic/api/models/FinancialAccount.kt | 156 +- .../models/FinancialAccountCreateParams.kt | 64 +- .../models/FinancialAccountCreditConfig.kt | 72 +- ...lAccountCreditConfigurationUpdateParams.kt | 64 +- .../models/FinancialAccountUpdateParams.kt | 44 +- .../lithic/api/models/FinancialTransaction.kt | 160 +- .../main/kotlin/com/lithic/api/models/Kyb.kt | 236 +-- .../main/kotlin/com/lithic/api/models/Kyc.kt | 144 +- .../kotlin/com/lithic/api/models/KycExempt.kt | 84 +- .../lithic/api/models/LineItemListResponse.kt | 96 +- .../kotlin/com/lithic/api/models/LoanTape.kt | 396 ++--- .../models/ManagementOperationCreateParams.kt | 88 +- .../ManagementOperationReverseParams.kt | 56 +- .../models/ManagementOperationTransaction.kt | 184 +-- .../com/lithic/api/models/MessageAttempt.kt | 80 +- .../api/models/MicroDepositCreateResponse.kt | 136 +- .../kotlin/com/lithic/api/models/Payment.kt | 264 ++-- .../lithic/api/models/PaymentCreateParams.kt | 128 +- .../api/models/PaymentCreateResponse.kt | 124 +- .../lithic/api/models/PaymentRetryResponse.kt | 124 +- .../api/models/PaymentSimulateActionParams.kt | 60 +- .../models/PaymentSimulateActionResponse.kt | 60 +- .../models/PaymentSimulateReceiptParams.kt | 68 +- .../models/PaymentSimulateReceiptResponse.kt | 60 +- .../models/PaymentSimulateReleaseParams.kt | 44 +- .../models/PaymentSimulateReleaseResponse.kt | 60 +- .../api/models/PaymentSimulateReturnParams.kt | 56 +- .../models/PaymentSimulateReturnResponse.kt | 60 +- .../com/lithic/api/models/RequiredDocument.kt | 60 +- .../models/ResponderEndpointCreateParams.kt | 56 +- .../models/ResponderEndpointCreateResponse.kt | 44 +- .../api/models/ResponderEndpointStatus.kt | 56 +- .../com/lithic/api/models/SettlementDetail.kt | 172 +-- .../com/lithic/api/models/SettlementReport.kt | 92 +- .../api/models/SettlementSummaryDetails.kt | 80 +- .../com/lithic/api/models/ShippingAddress.kt | 92 +- .../kotlin/com/lithic/api/models/Statement.kt | 472 +++--- .../lithic/api/models/StatementLineItems.kt | 152 +- .../com/lithic/api/models/Statements.kt | 56 +- .../SubscriptionRetrieveSecretResponse.kt | 44 +- .../ThreeDSAuthenticationSimulateParams.kt | 180 +-- ...reeDSDecisioningChallengeResponseParams.kt | 56 +- .../com/lithic/api/models/Tokenization.kt | 156 +- ...nizationDecisioningRotateSecretResponse.kt | 44 +- .../TokenizationResendActivationCodeParams.kt | 44 +- .../models/TokenizationRetrieveResponse.kt | 44 +- .../lithic/api/models/TokenizationSecret.kt | 44 +- .../api/models/TokenizationSimulateParams.kt | 80 +- .../models/TokenizationSimulateResponse.kt | 44 +- .../TokenizationUpdateDigitalCardArtParams.kt | 44 +- ...okenizationUpdateDigitalCardArtResponse.kt | 44 +- .../com/lithic/api/models/Transaction.kt | 1302 ++++++++--------- ...actionSimulateAuthorizationAdviceParams.kt | 56 +- ...tionSimulateAuthorizationAdviceResponse.kt | 56 +- .../TransactionSimulateAuthorizationParams.kt | 84 +- ...ransactionSimulateAuthorizationResponse.kt | 56 +- .../TransactionSimulateClearingParams.kt | 56 +- .../TransactionSimulateClearingResponse.kt | 44 +- ...actionSimulateCreditAuthorizationParams.kt | 68 +- ...tionSimulateCreditAuthorizationResponse.kt | 56 +- .../models/TransactionSimulateReturnParams.kt | 60 +- .../TransactionSimulateReturnResponse.kt | 56 +- ...TransactionSimulateReturnReversalParams.kt | 44 +- ...ansactionSimulateReturnReversalResponse.kt | 44 +- .../models/TransactionSimulateVoidParams.kt | 60 +- .../models/TransactionSimulateVoidResponse.kt | 44 +- .../kotlin/com/lithic/api/models/Transfer.kt | 168 +-- .../lithic/api/models/TransferCreateParams.kt | 68 +- .../com/lithic/api/models/V2ApplyResponse.kt | 400 ++--- .../com/lithic/api/models/V2CreateResponse.kt | 400 ++--- .../com/lithic/api/models/V2DraftResponse.kt | 400 ++--- .../com/lithic/api/models/V2ListResponse.kt | 400 ++--- .../lithic/api/models/V2PromoteResponse.kt | 400 ++--- .../com/lithic/api/models/V2ReportResponse.kt | 44 +- .../lithic/api/models/V2RetrieveResponse.kt | 400 ++--- .../com/lithic/api/models/V2UpdateResponse.kt | 400 ++--- .../lithic/api/models/VelocityLimitParams.kt | 124 +- 159 files changed, 10165 insertions(+), 10165 deletions(-) diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Account.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Account.kt index 4e844ac33..b6668c802 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Account.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Account.kt @@ -36,8 +36,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun accountHolder(): Optional = Optional.ofNullable(accountHolder.getNullable("account_holder")) @@ -160,44 +158,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Account && - this.accountHolder == other.accountHolder && - this.authRuleTokens == other.authRuleTokens && - this.cardholderCurrency == other.cardholderCurrency && - this.spendLimit == other.spendLimit && - this.state == other.state && - this.token == other.token && - this.verificationAddress == other.verificationAddress && - this.created == other.created && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountHolder, - authRuleTokens, - cardholderCurrency, - spendLimit, - state, - token, - verificationAddress, - created, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Account{accountHolder=$accountHolder, authRuleTokens=$authRuleTokens, cardholderCurrency=$cardholderCurrency, spendLimit=$spendLimit, state=$state, token=$token, verificationAddress=$verificationAddress, created=$created, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -397,8 +357,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Daily spend limit (in cents). */ fun daily(): Long = daily.getRequired("daily") @@ -432,34 +390,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is SpendLimit && - this.daily == other.daily && - this.lifetime == other.lifetime && - this.monthly == other.monthly && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - daily, - lifetime, - monthly, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "SpendLimit{daily=$daily, lifetime=$lifetime, monthly=$monthly, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -526,6 +456,36 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is SpendLimit && + this.daily == other.daily && + this.lifetime == other.lifetime && + this.monthly == other.monthly && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + daily, + lifetime, + monthly, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "SpendLimit{daily=$daily, lifetime=$lifetime, monthly=$monthly, additionalProperties=$additionalProperties}" } class State @@ -604,8 +564,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Only applicable for customers using the KYC-Exempt workflow to enroll authorized users of * businesses. Account_token of the enrolled business associated with an enrolled @@ -657,36 +615,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountHolder && - this.businessAccountToken == other.businessAccountToken && - this.email == other.email && - this.phoneNumber == other.phoneNumber && - this.token == other.token && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - businessAccountToken, - email, - phoneNumber, - token, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountHolder{businessAccountToken=$businessAccountToken, email=$email, phoneNumber=$phoneNumber, token=$token, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -777,6 +705,38 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountHolder && + this.businessAccountToken == other.businessAccountToken && + this.email == other.email && + this.phoneNumber == other.phoneNumber && + this.token == other.token && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + businessAccountToken, + email, + phoneNumber, + token, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountHolder{businessAccountToken=$businessAccountToken, email=$email, phoneNumber=$phoneNumber, token=$token, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = VerificationAddress.Builder::class) @@ -794,8 +754,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Valid deliverable address (no PO boxes). */ fun address1(): String = address1.getRequired("address1") @@ -862,40 +820,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is VerificationAddress && - this.address1 == other.address1 && - this.address2 == other.address2 && - this.city == other.city && - this.country == other.country && - this.postalCode == other.postalCode && - this.state == other.state && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address1, - address2, - city, - country, - postalCode, - state, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "VerificationAddress{address1=$address1, address2=$address2, city=$city, country=$country, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1009,5 +933,81 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is VerificationAddress && + this.address1 == other.address1 && + this.address2 == other.address2 && + this.city == other.city && + this.country == other.country && + this.postalCode == other.postalCode && + this.state == other.state && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address1, + address2, + city, + country, + postalCode, + state, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "VerificationAddress{address1=$address1, address2=$address2, city=$city, country=$country, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Account && + this.accountHolder == other.accountHolder && + this.authRuleTokens == other.authRuleTokens && + this.cardholderCurrency == other.cardholderCurrency && + this.spendLimit == other.spendLimit && + this.state == other.state && + this.token == other.token && + this.verificationAddress == other.verificationAddress && + this.created == other.created && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountHolder, + authRuleTokens, + cardholderCurrency, + spendLimit, + state, + token, + verificationAddress, + created, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Account{accountHolder=$accountHolder, authRuleTokens=$authRuleTokens, cardholderCurrency=$cardholderCurrency, spendLimit=$spendLimit, state=$state, token=$token, verificationAddress=$verificationAddress, created=$created, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolder.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolder.kt index 425972f36..6e06e7183 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolder.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolder.kt @@ -48,8 +48,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Globally unique identifier for the account. */ fun accountToken(): Optional = Optional.ofNullable(accountToken.getNullable("account_token")) @@ -329,68 +327,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountHolder && - this.accountToken == other.accountToken && - this.beneficialOwnerEntities == other.beneficialOwnerEntities && - this.beneficialOwnerIndividuals == other.beneficialOwnerIndividuals && - this.businessAccountToken == other.businessAccountToken && - this.businessEntity == other.businessEntity && - this.controlPerson == other.controlPerson && - this.created == other.created && - this.email == other.email && - this.exemptionType == other.exemptionType && - this.externalId == other.externalId && - this.individual == other.individual && - this.natureOfBusiness == other.natureOfBusiness && - this.phoneNumber == other.phoneNumber && - this.status == other.status && - this.statusReasons == other.statusReasons && - this.token == other.token && - this.userType == other.userType && - this.verificationApplication == other.verificationApplication && - this.requiredDocuments == other.requiredDocuments && - this.websiteUrl == other.websiteUrl && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountToken, - beneficialOwnerEntities, - beneficialOwnerIndividuals, - businessAccountToken, - businessEntity, - controlPerson, - created, - email, - exemptionType, - externalId, - individual, - natureOfBusiness, - phoneNumber, - status, - statusReasons, - token, - userType, - verificationApplication, - requiredDocuments, - websiteUrl, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountHolder{accountToken=$accountToken, beneficialOwnerEntities=$beneficialOwnerEntities, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, businessAccountToken=$businessAccountToken, businessEntity=$businessEntity, controlPerson=$controlPerson, created=$created, email=$email, exemptionType=$exemptionType, externalId=$externalId, individual=$individual, natureOfBusiness=$natureOfBusiness, phoneNumber=$phoneNumber, status=$status, statusReasons=$statusReasons, token=$token, userType=$userType, verificationApplication=$verificationApplication, requiredDocuments=$requiredDocuments, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -811,8 +747,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Business's physical address - PO boxes, UPS drops, and FedEx drops are not acceptable; * APO/FPO are acceptable. @@ -895,42 +829,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountHolderBusinessResponse && - this.address == other.address && - this.dbaBusinessName == other.dbaBusinessName && - this.governmentId == other.governmentId && - this.legalBusinessName == other.legalBusinessName && - this.parentCompany == other.parentCompany && - this.phoneNumbers == other.phoneNumbers && - this.entityToken == other.entityToken && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address, - dbaBusinessName, - governmentId, - legalBusinessName, - parentCompany, - phoneNumbers, - entityToken, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountHolderBusinessResponse{address=$address, dbaBusinessName=$dbaBusinessName, governmentId=$governmentId, legalBusinessName=$legalBusinessName, parentCompany=$parentCompany, phoneNumbers=$phoneNumbers, entityToken=$entityToken, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1074,6 +972,44 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountHolderBusinessResponse && + this.address == other.address && + this.dbaBusinessName == other.dbaBusinessName && + this.governmentId == other.governmentId && + this.legalBusinessName == other.legalBusinessName && + this.parentCompany == other.parentCompany && + this.phoneNumbers == other.phoneNumbers && + this.entityToken == other.entityToken && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address, + dbaBusinessName, + governmentId, + legalBusinessName, + parentCompany, + phoneNumbers, + entityToken, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountHolderBusinessResponse{address=$address, dbaBusinessName=$dbaBusinessName, governmentId=$governmentId, legalBusinessName=$legalBusinessName, parentCompany=$parentCompany, phoneNumbers=$phoneNumbers, entityToken=$entityToken, additionalProperties=$additionalProperties}" } /** @@ -1096,8 +1032,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Individual's current address */ fun address(): Address = address.getRequired("address") @@ -1159,42 +1093,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountHolderIndividualResponse && - this.address == other.address && - this.dob == other.dob && - this.email == other.email && - this.firstName == other.firstName && - this.lastName == other.lastName && - this.phoneNumber == other.phoneNumber && - this.entityToken == other.entityToken && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address, - dob, - email, - firstName, - lastName, - phoneNumber, - entityToken, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountHolderIndividualResponse{address=$address, dob=$dob, email=$email, firstName=$firstName, lastName=$lastName, phoneNumber=$phoneNumber, entityToken=$entityToken, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1310,6 +1208,44 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountHolderIndividualResponse && + this.address == other.address && + this.dob == other.dob && + this.email == other.email && + this.firstName == other.firstName && + this.lastName == other.lastName && + this.phoneNumber == other.phoneNumber && + this.entityToken == other.entityToken && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address, + dob, + email, + firstName, + lastName, + phoneNumber, + entityToken, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountHolderIndividualResponse{address=$address, dob=$dob, email=$email, firstName=$firstName, lastName=$lastName, phoneNumber=$phoneNumber, entityToken=$entityToken, additionalProperties=$additionalProperties}" } class ExemptionType @@ -1640,8 +1576,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Timestamp of when the application was created. */ fun created(): Optional = Optional.ofNullable(created.getNullable("created")) @@ -1699,36 +1633,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountHolderVerificationApplication && - this.created == other.created && - this.status == other.status && - this.statusReasons == other.statusReasons && - this.updated == other.updated && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - created, - status, - statusReasons, - updated, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountHolderVerificationApplication{created=$created, status=$status, statusReasons=$statusReasons, updated=$updated, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2028,5 +1932,101 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountHolderVerificationApplication && + this.created == other.created && + this.status == other.status && + this.statusReasons == other.statusReasons && + this.updated == other.updated && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + created, + status, + statusReasons, + updated, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountHolderVerificationApplication{created=$created, status=$status, statusReasons=$statusReasons, updated=$updated, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountHolder && + this.accountToken == other.accountToken && + this.beneficialOwnerEntities == other.beneficialOwnerEntities && + this.beneficialOwnerIndividuals == other.beneficialOwnerIndividuals && + this.businessAccountToken == other.businessAccountToken && + this.businessEntity == other.businessEntity && + this.controlPerson == other.controlPerson && + this.created == other.created && + this.email == other.email && + this.exemptionType == other.exemptionType && + this.externalId == other.externalId && + this.individual == other.individual && + this.natureOfBusiness == other.natureOfBusiness && + this.phoneNumber == other.phoneNumber && + this.status == other.status && + this.statusReasons == other.statusReasons && + this.token == other.token && + this.userType == other.userType && + this.verificationApplication == other.verificationApplication && + this.requiredDocuments == other.requiredDocuments && + this.websiteUrl == other.websiteUrl && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountToken, + beneficialOwnerEntities, + beneficialOwnerIndividuals, + businessAccountToken, + businessEntity, + controlPerson, + created, + email, + exemptionType, + externalId, + individual, + natureOfBusiness, + phoneNumber, + status, + statusReasons, + token, + userType, + verificationApplication, + requiredDocuments, + websiteUrl, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "AccountHolder{accountToken=$accountToken, beneficialOwnerEntities=$beneficialOwnerEntities, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, businessAccountToken=$businessAccountToken, businessEntity=$businessEntity, controlPerson=$controlPerson, created=$created, email=$email, exemptionType=$exemptionType, externalId=$externalId, individual=$individual, natureOfBusiness=$natureOfBusiness, phoneNumber=$phoneNumber, status=$status, statusReasons=$statusReasons, token=$token, userType=$userType, verificationApplication=$verificationApplication, requiredDocuments=$requiredDocuments, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderCreateResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderCreateResponse.kt index f4d7731ed..3b91b6b42 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderCreateResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderCreateResponse.kt @@ -35,8 +35,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Globally unique identifier for the account. */ fun accountToken(): String = accountToken.getRequired("account_token") @@ -125,42 +123,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountHolderCreateResponse && - this.accountToken == other.accountToken && - this.created == other.created && - this.externalId == other.externalId && - this.status == other.status && - this.statusReasons == other.statusReasons && - this.requiredDocuments == other.requiredDocuments && - this.token == other.token && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountToken, - created, - externalId, - status, - statusReasons, - requiredDocuments, - token, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountHolderCreateResponse{accountToken=$accountToken, created=$created, externalId=$externalId, status=$status, statusReasons=$statusReasons, requiredDocuments=$requiredDocuments, token=$token, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -505,4 +467,42 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountHolderCreateResponse && + this.accountToken == other.accountToken && + this.created == other.created && + this.externalId == other.externalId && + this.status == other.status && + this.statusReasons == other.statusReasons && + this.requiredDocuments == other.requiredDocuments && + this.token == other.token && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountToken, + created, + externalId, + status, + statusReasons, + requiredDocuments, + token, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountHolderCreateResponse{accountToken=$accountToken, created=$created, externalId=$externalId, status=$status, statusReasons=$statusReasons, requiredDocuments=$requiredDocuments, token=$token, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderListDocumentsResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderListDocumentsResponse.kt index aa86f881e..0fdfd2278 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderListDocumentsResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderListDocumentsResponse.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun data(): Optional> = Optional.ofNullable(data.getNullable("data")) @JsonProperty("data") @ExcludeMissing fun _data() = data @@ -44,26 +42,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountHolderListDocumentsResponse && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(data, additionalProperties) - } - return hashCode - } - - override fun toString() = - "AccountHolderListDocumentsResponse{data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -107,4 +85,26 @@ private constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountHolderListDocumentsResponse && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(data, additionalProperties) + } + return hashCode + } + + override fun toString() = + "AccountHolderListDocumentsResponse{data=$data, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderResubmitParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderResubmitParams.kt index 169a2d66c..d8393d960 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderResubmitParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderResubmitParams.kt @@ -67,8 +67,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Information on individual for whom the account is being opened and KYC is being re-run. */ @@ -89,34 +87,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountHolderResubmitBody && - this.individual == other.individual && - this.tosTimestamp == other.tosTimestamp && - this.workflow == other.workflow && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - individual, - tosTimestamp, - workflow, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountHolderResubmitBody{individual=$individual, tosTimestamp=$tosTimestamp, workflow=$workflow, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -177,6 +147,36 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountHolderResubmitBody && + this.individual == other.individual && + this.tosTimestamp == other.tosTimestamp && + this.workflow == other.workflow && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + individual, + tosTimestamp, + workflow, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountHolderResubmitBody{individual=$individual, tosTimestamp=$tosTimestamp, workflow=$workflow, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams @@ -345,8 +345,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Individual's current address - PO boxes, UPS drops, and FedEx drops are not acceptable; * APO/FPO are acceptable. Only USA addresses are currently supported. @@ -385,42 +383,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Individual && - this.address == other.address && - this.dob == other.dob && - this.email == other.email && - this.firstName == other.firstName && - this.governmentId == other.governmentId && - this.lastName == other.lastName && - this.phoneNumber == other.phoneNumber && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address, - dob, - email, - firstName, - governmentId, - lastName, - phoneNumber, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Individual{address=$address, dob=$dob, email=$email, firstName=$firstName, governmentId=$governmentId, lastName=$lastName, phoneNumber=$phoneNumber, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -512,6 +474,44 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Individual && + this.address == other.address && + this.dob == other.dob && + this.email == other.email && + this.firstName == other.firstName && + this.governmentId == other.governmentId && + this.lastName == other.lastName && + this.phoneNumber == other.phoneNumber && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address, + dob, + email, + firstName, + governmentId, + lastName, + phoneNumber, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Individual{address=$address, dob=$dob, email=$email, firstName=$firstName, governmentId=$governmentId, lastName=$lastName, phoneNumber=$phoneNumber, additionalProperties=$additionalProperties}" } class Workflow diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentDocumentReviewParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentDocumentReviewParams.kt index 83b6d6761..1fb8f0b2c 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentDocumentReviewParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentDocumentReviewParams.kt @@ -58,8 +58,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** The account holder document upload which to perform the simulation upon. */ @JsonProperty("document_upload_token") fun documentUploadToken(): String? = documentUploadToken @@ -79,34 +77,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountHolderSimulateEnrollmentDocumentReviewBody && - this.documentUploadToken == other.documentUploadToken && - this.status == other.status && - this.statusReasons == other.statusReasons && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - documentUploadToken, - status, - statusReasons, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountHolderSimulateEnrollmentDocumentReviewBody{documentUploadToken=$documentUploadToken, status=$status, statusReasons=$statusReasons, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -173,6 +143,36 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountHolderSimulateEnrollmentDocumentReviewBody && + this.documentUploadToken == other.documentUploadToken && + this.status == other.status && + this.statusReasons == other.statusReasons && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + documentUploadToken, + status, + statusReasons, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountHolderSimulateEnrollmentDocumentReviewBody{documentUploadToken=$documentUploadToken, status=$status, statusReasons=$statusReasons, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewParams.kt index ba67accc4..0760c3756 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewParams.kt @@ -58,8 +58,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** The account holder which to perform the simulation upon. */ @JsonProperty("account_holder_token") fun accountHolderToken(): String? = accountHolderToken @@ -78,34 +76,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountHolderSimulateEnrollmentReviewBody && - this.accountHolderToken == other.accountHolderToken && - this.status == other.status && - this.statusReasons == other.statusReasons && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountHolderToken, - status, - statusReasons, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountHolderSimulateEnrollmentReviewBody{accountHolderToken=$accountHolderToken, status=$status, statusReasons=$statusReasons, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -169,6 +139,36 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountHolderSimulateEnrollmentReviewBody && + this.accountHolderToken == other.accountHolderToken && + this.status == other.status && + this.statusReasons == other.statusReasons && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountHolderToken, + status, + statusReasons, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountHolderSimulateEnrollmentReviewBody{accountHolderToken=$accountHolderToken, status=$status, statusReasons=$statusReasons, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewResponse.kt index c1b04c292..5bf893909 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewResponse.kt @@ -48,8 +48,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Globally unique identifier for the account holder. */ fun token(): Optional = Optional.ofNullable(token.getNullable("token")) @@ -345,68 +343,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountHolderSimulateEnrollmentReviewResponse && - this.token == other.token && - this.accountToken == other.accountToken && - this.businessAccountToken == other.businessAccountToken && - this.created == other.created && - this.exemptionType == other.exemptionType && - this.externalId == other.externalId && - this.userType == other.userType && - this.verificationApplication == other.verificationApplication && - this.individual == other.individual && - this.businessEntity == other.businessEntity && - this.beneficialOwnerEntities == other.beneficialOwnerEntities && - this.beneficialOwnerIndividuals == other.beneficialOwnerIndividuals && - this.controlPerson == other.controlPerson && - this.natureOfBusiness == other.natureOfBusiness && - this.websiteUrl == other.websiteUrl && - this.email == other.email && - this.phoneNumber == other.phoneNumber && - this.status == other.status && - this.statusReasons == other.statusReasons && - this.requiredDocuments == other.requiredDocuments && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - accountToken, - businessAccountToken, - created, - exemptionType, - externalId, - userType, - verificationApplication, - individual, - businessEntity, - beneficialOwnerEntities, - beneficialOwnerIndividuals, - controlPerson, - natureOfBusiness, - websiteUrl, - email, - phoneNumber, - status, - statusReasons, - requiredDocuments, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountHolderSimulateEnrollmentReviewResponse{token=$token, accountToken=$accountToken, businessAccountToken=$businessAccountToken, created=$created, exemptionType=$exemptionType, externalId=$externalId, userType=$userType, verificationApplication=$verificationApplication, individual=$individual, businessEntity=$businessEntity, beneficialOwnerEntities=$beneficialOwnerEntities, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, controlPerson=$controlPerson, natureOfBusiness=$natureOfBusiness, websiteUrl=$websiteUrl, email=$email, phoneNumber=$phoneNumber, status=$status, statusReasons=$statusReasons, requiredDocuments=$requiredDocuments, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -844,8 +780,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Business''s physical address - PO boxes, UPS drops, and FedEx drops are not acceptable; * APO/FPO are acceptable. @@ -922,40 +856,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is KybBusinessEntity && - this.address == other.address && - this.dbaBusinessName == other.dbaBusinessName && - this.governmentId == other.governmentId && - this.legalBusinessName == other.legalBusinessName && - this.parentCompany == other.parentCompany && - this.phoneNumbers == other.phoneNumbers && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address, - dbaBusinessName, - governmentId, - legalBusinessName, - parentCompany, - phoneNumbers, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "KybBusinessEntity{address=$address, dbaBusinessName=$dbaBusinessName, governmentId=$governmentId, legalBusinessName=$legalBusinessName, parentCompany=$parentCompany, phoneNumbers=$phoneNumbers, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1105,8 +1005,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Valid deliverable address (no PO boxes). */ fun address1(): String = address1.getRequired("address1") @@ -1179,40 +1077,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Address2 && - this.address1 == other.address1 && - this.address2 == other.address2 && - this.city == other.city && - this.country == other.country && - this.postalCode == other.postalCode && - this.state == other.state && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address1, - address2, - city, - country, - postalCode, - state, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Address2{address1=$address1, address2=$address2, city=$city, country=$country, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1333,7 +1197,79 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Address2 && + this.address1 == other.address1 && + this.address2 == other.address2 && + this.city == other.city && + this.country == other.country && + this.postalCode == other.postalCode && + this.state == other.state && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address1, + address2, + city, + country, + postalCode, + state, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Address2{address1=$address1, address2=$address2, city=$city, country=$country, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is KybBusinessEntity && + this.address == other.address && + this.dbaBusinessName == other.dbaBusinessName && + this.governmentId == other.governmentId && + this.legalBusinessName == other.legalBusinessName && + this.parentCompany == other.parentCompany && + this.phoneNumbers == other.phoneNumbers && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address, + dbaBusinessName, + governmentId, + legalBusinessName, + parentCompany, + phoneNumbers, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "KybBusinessEntity{address=$address, dbaBusinessName=$dbaBusinessName, governmentId=$governmentId, legalBusinessName=$legalBusinessName, parentCompany=$parentCompany, phoneNumbers=$phoneNumbers, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Individual.Builder::class) @@ -1352,8 +1288,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Individual's current address - PO boxes, UPS drops, and FedEx drops are not acceptable; * APO/FPO are acceptable. Only USA addresses are currently supported. @@ -1439,42 +1373,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Individual && - this.address == other.address && - this.dob == other.dob && - this.email == other.email && - this.firstName == other.firstName && - this.lastName == other.lastName && - this.phoneNumber == other.phoneNumber && - this.governmentId == other.governmentId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address, - dob, - email, - firstName, - lastName, - phoneNumber, - governmentId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Individual{address=$address, dob=$dob, email=$email, firstName=$firstName, lastName=$lastName, phoneNumber=$phoneNumber, governmentId=$governmentId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1631,8 +1529,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Valid deliverable address (no PO boxes). */ fun address1(): String = address1.getRequired("address1") @@ -1705,40 +1601,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Address2 && - this.address1 == other.address1 && - this.address2 == other.address2 && - this.city == other.city && - this.country == other.country && - this.postalCode == other.postalCode && - this.state == other.state && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address1, - address2, - city, - country, - postalCode, - state, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Address2{address1=$address1, address2=$address2, city=$city, country=$country, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1859,7 +1721,81 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Address2 && + this.address1 == other.address1 && + this.address2 == other.address2 && + this.city == other.city && + this.country == other.country && + this.postalCode == other.postalCode && + this.state == other.state && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address1, + address2, + city, + country, + postalCode, + state, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Address2{address1=$address1, address2=$address2, city=$city, country=$country, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Individual && + this.address == other.address && + this.dob == other.dob && + this.email == other.email && + this.firstName == other.firstName && + this.lastName == other.lastName && + this.phoneNumber == other.phoneNumber && + this.governmentId == other.governmentId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address, + dob, + email, + firstName, + lastName, + phoneNumber, + governmentId, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Individual{address=$address, dob=$dob, email=$email, firstName=$firstName, lastName=$lastName, phoneNumber=$phoneNumber, governmentId=$governmentId, additionalProperties=$additionalProperties}" } class ExemptionType @@ -2184,8 +2120,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Timestamp of when the application was created. */ fun created(): Optional = Optional.ofNullable(created.getNullable("created")) @@ -2239,36 +2173,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is VerificationApplication && - this.created == other.created && - this.status == other.status && - this.statusReasons == other.statusReasons && - this.updated == other.updated && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - created, - status, - statusReasons, - updated, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "VerificationApplication{created=$created, status=$status, statusReasons=$statusReasons, updated=$updated, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2556,5 +2460,101 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is VerificationApplication && + this.created == other.created && + this.status == other.status && + this.statusReasons == other.statusReasons && + this.updated == other.updated && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + created, + status, + statusReasons, + updated, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "VerificationApplication{created=$created, status=$status, statusReasons=$statusReasons, updated=$updated, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountHolderSimulateEnrollmentReviewResponse && + this.token == other.token && + this.accountToken == other.accountToken && + this.businessAccountToken == other.businessAccountToken && + this.created == other.created && + this.exemptionType == other.exemptionType && + this.externalId == other.externalId && + this.userType == other.userType && + this.verificationApplication == other.verificationApplication && + this.individual == other.individual && + this.businessEntity == other.businessEntity && + this.beneficialOwnerEntities == other.beneficialOwnerEntities && + this.beneficialOwnerIndividuals == other.beneficialOwnerIndividuals && + this.controlPerson == other.controlPerson && + this.natureOfBusiness == other.natureOfBusiness && + this.websiteUrl == other.websiteUrl && + this.email == other.email && + this.phoneNumber == other.phoneNumber && + this.status == other.status && + this.statusReasons == other.statusReasons && + this.requiredDocuments == other.requiredDocuments && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + accountToken, + businessAccountToken, + created, + exemptionType, + externalId, + userType, + verificationApplication, + individual, + businessEntity, + beneficialOwnerEntities, + beneficialOwnerIndividuals, + controlPerson, + natureOfBusiness, + websiteUrl, + email, + phoneNumber, + status, + statusReasons, + requiredDocuments, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountHolderSimulateEnrollmentReviewResponse{token=$token, accountToken=$accountToken, businessAccountToken=$businessAccountToken, created=$created, exemptionType=$exemptionType, externalId=$externalId, userType=$userType, verificationApplication=$verificationApplication, individual=$individual, businessEntity=$businessEntity, beneficialOwnerEntities=$beneficialOwnerEntities, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, controlPerson=$controlPerson, natureOfBusiness=$natureOfBusiness, websiteUrl=$websiteUrl, email=$email, phoneNumber=$phoneNumber, status=$status, statusReasons=$statusReasons, requiredDocuments=$requiredDocuments, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateParams.kt index 70fd507a5..bd59580ad 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateParams.kt @@ -64,8 +64,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Only applicable for customers using the KYC-Exempt workflow to enroll authorized users of * businesses. Pass the account_token of the enrolled business associated with the @@ -93,34 +91,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountHolderUpdateBody && - this.businessAccountToken == other.businessAccountToken && - this.email == other.email && - this.phoneNumber == other.phoneNumber && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - businessAccountToken, - email, - phoneNumber, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountHolderUpdateBody{businessAccountToken=$businessAccountToken, email=$email, phoneNumber=$phoneNumber, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -187,6 +157,36 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountHolderUpdateBody && + this.businessAccountToken == other.businessAccountToken && + this.email == other.email && + this.phoneNumber == other.phoneNumber && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + businessAccountToken, + email, + phoneNumber, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountHolderUpdateBody{businessAccountToken=$businessAccountToken, email=$email, phoneNumber=$phoneNumber, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateResponse.kt index 382da7a03..1dee9fb49 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateResponse.kt @@ -28,8 +28,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Only applicable for customers using the KYC-Exempt workflow to enroll businesses with * authorized users. Pass the account_token of the enrolled business associated with the @@ -82,36 +80,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountHolderUpdateResponse && - this.businessAccountToken == other.businessAccountToken && - this.email == other.email && - this.phoneNumber == other.phoneNumber && - this.token == other.token && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - businessAccountToken, - email, - phoneNumber, - token, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountHolderUpdateResponse{businessAccountToken=$businessAccountToken, email=$email, phoneNumber=$phoneNumber, token=$token, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -200,4 +168,36 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountHolderUpdateResponse && + this.businessAccountToken == other.businessAccountToken && + this.email == other.email && + this.phoneNumber == other.phoneNumber && + this.token == other.token && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + businessAccountToken, + email, + phoneNumber, + token, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountHolderUpdateResponse{businessAccountToken=$businessAccountToken, email=$email, phoneNumber=$phoneNumber, token=$token, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUploadDocumentParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUploadDocumentParams.kt index f63c9e07b..d9a459b94 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUploadDocumentParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUploadDocumentParams.kt @@ -62,8 +62,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** The type of document to upload */ @JsonProperty("document_type") fun documentType(): DocumentType? = documentType @@ -76,32 +74,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountHolderUploadDocumentBody && - this.documentType == other.documentType && - this.entityToken == other.entityToken && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - documentType, - entityToken, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountHolderUploadDocumentBody{documentType=$documentType, entityToken=$entityToken, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -152,6 +124,34 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountHolderUploadDocumentBody && + this.documentType == other.documentType && + this.entityToken == other.entityToken && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + documentType, + entityToken, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountHolderUploadDocumentBody{documentType=$documentType, entityToken=$entityToken, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountSpendLimits.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountSpendLimits.kt index 9fb1b7ee2..c60daa073 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountSpendLimits.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountSpendLimits.kt @@ -27,8 +27,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun availableSpendLimit(): AvailableSpendLimit = availableSpendLimit.getRequired("available_spend_limit") @@ -61,34 +59,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountSpendLimits && - this.availableSpendLimit == other.availableSpendLimit && - this.spendLimit == other.spendLimit && - this.spendVelocity == other.spendVelocity && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - availableSpendLimit, - spendLimit, - spendVelocity, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountSpendLimits{availableSpendLimit=$availableSpendLimit, spendLimit=$spendLimit, spendVelocity=$spendVelocity, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -167,8 +137,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * The available spend limit (in cents) relative to the daily limit configured on the * Account. @@ -220,34 +188,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AvailableSpendLimit && - this.daily == other.daily && - this.lifetime == other.lifetime && - this.monthly == other.monthly && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - daily, - lifetime, - monthly, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AvailableSpendLimit{daily=$daily, lifetime=$lifetime, monthly=$monthly, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -332,6 +272,36 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AvailableSpendLimit && + this.daily == other.daily && + this.lifetime == other.lifetime && + this.monthly == other.monthly && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + daily, + lifetime, + monthly, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AvailableSpendLimit{daily=$daily, lifetime=$lifetime, monthly=$monthly, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = SpendLimit.Builder::class) @@ -346,8 +316,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The configured daily spend limit (in cents) on the Account. */ fun daily(): Optional = Optional.ofNullable(daily.getNullable("daily")) @@ -381,34 +349,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is SpendLimit && - this.daily == other.daily && - this.lifetime == other.lifetime && - this.monthly == other.monthly && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - daily, - lifetime, - monthly, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "SpendLimit{daily=$daily, lifetime=$lifetime, monthly=$monthly, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -475,6 +415,36 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is SpendLimit && + this.daily == other.daily && + this.lifetime == other.lifetime && + this.monthly == other.monthly && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + daily, + lifetime, + monthly, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "SpendLimit{daily=$daily, lifetime=$lifetime, monthly=$monthly, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = SpendVelocity.Builder::class) @@ -489,8 +459,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Current daily spend velocity (in cents) on the Account. Present if daily spend limit is * set. @@ -542,34 +510,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is SpendVelocity && - this.daily == other.daily && - this.lifetime == other.lifetime && - this.monthly == other.monthly && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - daily, - lifetime, - monthly, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "SpendVelocity{daily=$daily, lifetime=$lifetime, monthly=$monthly, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -654,5 +594,65 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is SpendVelocity && + this.daily == other.daily && + this.lifetime == other.lifetime && + this.monthly == other.monthly && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + daily, + lifetime, + monthly, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "SpendVelocity{daily=$daily, lifetime=$lifetime, monthly=$monthly, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountSpendLimits && + this.availableSpendLimit == other.availableSpendLimit && + this.spendLimit == other.spendLimit && + this.spendVelocity == other.spendVelocity && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + availableSpendLimit, + spendLimit, + spendVelocity, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountSpendLimits{availableSpendLimit=$availableSpendLimit, spendLimit=$spendLimit, spendVelocity=$spendVelocity, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountUpdateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountUpdateParams.kt index 15b71bd89..4b275f352 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountUpdateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountUpdateParams.kt @@ -79,8 +79,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Amount (in cents) for the account's daily spend limit. By default the daily spend limit * is set to $1,250. @@ -119,38 +117,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountUpdateBody && - this.dailySpendLimit == other.dailySpendLimit && - this.lifetimeSpendLimit == other.lifetimeSpendLimit && - this.monthlySpendLimit == other.monthlySpendLimit && - this.state == other.state && - this.verificationAddress == other.verificationAddress && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - dailySpendLimit, - lifetimeSpendLimit, - monthlySpendLimit, - state, - verificationAddress, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountUpdateBody{dailySpendLimit=$dailySpendLimit, lifetimeSpendLimit=$lifetimeSpendLimit, monthlySpendLimit=$monthlySpendLimit, state=$state, verificationAddress=$verificationAddress, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -242,6 +208,40 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountUpdateBody && + this.dailySpendLimit == other.dailySpendLimit && + this.lifetimeSpendLimit == other.lifetimeSpendLimit && + this.monthlySpendLimit == other.monthlySpendLimit && + this.state == other.state && + this.verificationAddress == other.verificationAddress && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + dailySpendLimit, + lifetimeSpendLimit, + monthlySpendLimit, + state, + verificationAddress, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountUpdateBody{dailySpendLimit=$dailySpendLimit, lifetimeSpendLimit=$lifetimeSpendLimit, monthlySpendLimit=$monthlySpendLimit, state=$state, verificationAddress=$verificationAddress, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams @@ -500,8 +500,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("address1") fun address1(): String? = address1 @JsonProperty("address2") fun address2(): String? = address2 @@ -520,40 +518,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is VerificationAddress && - this.address1 == other.address1 && - this.address2 == other.address2 && - this.city == other.city && - this.country == other.country && - this.postalCode == other.postalCode && - this.state == other.state && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address1, - address2, - city, - country, - postalCode, - state, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "VerificationAddress{address1=$address1, address2=$address2, city=$city, country=$country, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -620,5 +584,41 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is VerificationAddress && + this.address1 == other.address1 && + this.address2 == other.address2 && + this.city == other.city && + this.country == other.country && + this.postalCode == other.postalCode && + this.state == other.state && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address1, + address2, + city, + country, + postalCode, + state, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "VerificationAddress{address1=$address1, address2=$address2, city=$city, country=$country, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}" } } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Address.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Address.kt index 901fc8078..84c9fc32d 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Address.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Address.kt @@ -30,8 +30,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Valid deliverable address (no PO boxes). */ fun address1(): String = address1.getRequired("address1") @@ -106,40 +104,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Address && - this.address1 == other.address1 && - this.address2 == other.address2 && - this.city == other.city && - this.country == other.country && - this.postalCode == other.postalCode && - this.state == other.state && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address1, - address2, - city, - country, - postalCode, - state, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Address{address1=$address1, address2=$address2, city=$city, country=$country, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -259,4 +223,40 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Address && + this.address1 == other.address1 && + this.address2 == other.address2 && + this.city == other.city && + this.country == other.country && + this.postalCode == other.postalCode && + this.state == other.state && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address1, + address2, + city, + country, + postalCode, + state, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Address{address1=$address1, address2=$address2, city=$city, country=$country, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AggregateBalance.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AggregateBalance.kt index 13911bb94..6839c7b53 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AggregateBalance.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AggregateBalance.kt @@ -38,8 +38,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Funds available for spend in the currency's smallest unit (e.g., cents for USD) */ fun availableAmount(): Long = availableAmount.getRequired("available_amount") @@ -151,48 +149,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AggregateBalance && - this.availableAmount == other.availableAmount && - this.created == other.created && - this.currency == other.currency && - this.financialAccountType == other.financialAccountType && - this.lastFinancialAccountToken == other.lastFinancialAccountToken && - this.lastTransactionEventToken == other.lastTransactionEventToken && - this.lastTransactionToken == other.lastTransactionToken && - this.pendingAmount == other.pendingAmount && - this.totalAmount == other.totalAmount && - this.updated == other.updated && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - availableAmount, - created, - currency, - financialAccountType, - lastFinancialAccountToken, - lastTransactionEventToken, - lastTransactionToken, - pendingAmount, - totalAmount, - updated, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AggregateBalance{availableAmount=$availableAmount, created=$created, currency=$currency, financialAccountType=$financialAccountType, lastFinancialAccountToken=$lastFinancialAccountToken, lastTransactionEventToken=$lastTransactionEventToken, lastTransactionToken=$lastTransactionToken, pendingAmount=$pendingAmount, totalAmount=$totalAmount, updated=$updated, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -433,4 +389,48 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AggregateBalance && + this.availableAmount == other.availableAmount && + this.created == other.created && + this.currency == other.currency && + this.financialAccountType == other.financialAccountType && + this.lastFinancialAccountToken == other.lastFinancialAccountToken && + this.lastTransactionEventToken == other.lastTransactionEventToken && + this.lastTransactionToken == other.lastTransactionToken && + this.pendingAmount == other.pendingAmount && + this.totalAmount == other.totalAmount && + this.updated == other.updated && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + availableAmount, + created, + currency, + financialAccountType, + lastFinancialAccountToken, + lastTransactionEventToken, + lastTransactionToken, + pendingAmount, + totalAmount, + updated, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AggregateBalance{availableAmount=$availableAmount, created=$created, currency=$currency, financialAccountType=$financialAccountType, lastFinancialAccountToken=$lastFinancialAccountToken, lastTransactionEventToken=$lastTransactionEventToken, lastTransactionToken=$lastTransactionToken, pendingAmount=$pendingAmount, totalAmount=$totalAmount, updated=$updated, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AggregateBalanceListResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AggregateBalanceListResponse.kt index bfcb0356e..ba08d74e9 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AggregateBalanceListResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AggregateBalanceListResponse.kt @@ -34,8 +34,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Funds available for spend in the currency's smallest unit (e.g., cents for USD) */ fun availableAmount(): Long = availableAmount.getRequired("available_amount") @@ -128,46 +126,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AggregateBalanceListResponse && - this.availableAmount == other.availableAmount && - this.created == other.created && - this.currency == other.currency && - this.lastCardToken == other.lastCardToken && - this.lastTransactionEventToken == other.lastTransactionEventToken && - this.lastTransactionToken == other.lastTransactionToken && - this.pendingAmount == other.pendingAmount && - this.totalAmount == other.totalAmount && - this.updated == other.updated && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - availableAmount, - created, - currency, - lastCardToken, - lastTransactionEventToken, - lastTransactionToken, - pendingAmount, - totalAmount, - updated, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AggregateBalanceListResponse{availableAmount=$availableAmount, created=$created, currency=$currency, lastCardToken=$lastCardToken, lastTransactionEventToken=$lastTransactionEventToken, lastTransactionToken=$lastTransactionToken, pendingAmount=$pendingAmount, totalAmount=$totalAmount, updated=$updated, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -324,4 +282,46 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AggregateBalanceListResponse && + this.availableAmount == other.availableAmount && + this.created == other.created && + this.currency == other.currency && + this.lastCardToken == other.lastCardToken && + this.lastTransactionEventToken == other.lastTransactionEventToken && + this.lastTransactionToken == other.lastTransactionToken && + this.pendingAmount == other.pendingAmount && + this.totalAmount == other.totalAmount && + this.updated == other.updated && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + availableAmount, + created, + currency, + lastCardToken, + lastTransactionEventToken, + lastTransactionToken, + pendingAmount, + totalAmount, + updated, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AggregateBalanceListResponse{availableAmount=$availableAmount, created=$created, currency=$currency, lastCardToken=$lastCardToken, lastTransactionEventToken=$lastTransactionEventToken, lastTransactionToken=$lastTransactionToken, pendingAmount=$pendingAmount, totalAmount=$totalAmount, updated=$updated, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ApiStatus.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ApiStatus.kt index fd4dc9107..9eeeb7e80 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ApiStatus.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ApiStatus.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun message(): Optional = Optional.ofNullable(message.getNullable("message")) @JsonProperty("message") @ExcludeMissing fun _message() = message @@ -44,26 +42,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ApiStatus && - this.message == other.message && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(message, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ApiStatus{message=$message, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -102,4 +80,26 @@ private constructor( fun build(): ApiStatus = ApiStatus(message, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ApiStatus && + this.message == other.message && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(message, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ApiStatus{message=$message, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRule.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRule.kt index 26e14f3fe..8b9d56512 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRule.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRule.kt @@ -36,8 +36,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Array of account_token(s) identifying the accounts that the Auth Rule applies to. Note that * only this field or `card_tokens` can be provided for a given Auth Rule. @@ -140,46 +138,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AuthRule && - this.accountTokens == other.accountTokens && - this.allowedCountries == other.allowedCountries && - this.allowedMcc == other.allowedMcc && - this.blockedCountries == other.blockedCountries && - this.blockedMcc == other.blockedMcc && - this.cardTokens == other.cardTokens && - this.programLevel == other.programLevel && - this.state == other.state && - this.token == other.token && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountTokens, - allowedCountries, - allowedMcc, - blockedCountries, - blockedMcc, - cardTokens, - programLevel, - state, - token, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AuthRule{accountTokens=$accountTokens, allowedCountries=$allowedCountries, allowedMcc=$allowedMcc, blockedCountries=$blockedCountries, blockedMcc=$blockedMcc, cardTokens=$cardTokens, programLevel=$programLevel, state=$state, token=$token, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -399,4 +357,46 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AuthRule && + this.accountTokens == other.accountTokens && + this.allowedCountries == other.allowedCountries && + this.allowedMcc == other.allowedMcc && + this.blockedCountries == other.blockedCountries && + this.blockedMcc == other.blockedMcc && + this.cardTokens == other.cardTokens && + this.programLevel == other.programLevel && + this.state == other.state && + this.token == other.token && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountTokens, + allowedCountries, + allowedMcc, + blockedCountries, + blockedMcc, + cardTokens, + programLevel, + state, + token, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AuthRule{accountTokens=$accountTokens, allowedCountries=$allowedCountries, allowedMcc=$allowedMcc, blockedCountries=$blockedCountries, blockedMcc=$blockedMcc, cardTokens=$cardTokens, programLevel=$programLevel, state=$state, token=$token, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleApplyParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleApplyParams.kt index 215bdf763..d92f78a3f 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleApplyParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleApplyParams.kt @@ -64,8 +64,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Array of account_token(s) identifying the accounts that the Auth Rule applies to. Note * that only this field or `card_tokens` can be provided for a given Auth Rule. @@ -87,34 +85,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AuthRuleApplyBody && - this.accountTokens == other.accountTokens && - this.cardTokens == other.cardTokens && - this.programLevel == other.programLevel && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountTokens, - cardTokens, - programLevel, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AuthRuleApplyBody{accountTokens=$accountTokens, cardTokens=$cardTokens, programLevel=$programLevel, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -177,6 +147,36 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AuthRuleApplyBody && + this.accountTokens == other.accountTokens && + this.cardTokens == other.cardTokens && + this.programLevel == other.programLevel && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountTokens, + cardTokens, + programLevel, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AuthRuleApplyBody{accountTokens=$accountTokens, cardTokens=$cardTokens, programLevel=$programLevel, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleCreateParams.kt index a96e1ddf5..4ff792fba 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleCreateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleCreateParams.kt @@ -74,8 +74,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Array of account_token(s) identifying the accounts that the Auth Rule applies to. Note * that only this field or `card_tokens` can be provided for a given Auth Rule. @@ -113,42 +111,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AuthRuleCreateBody && - this.accountTokens == other.accountTokens && - this.allowedCountries == other.allowedCountries && - this.allowedMcc == other.allowedMcc && - this.blockedCountries == other.blockedCountries && - this.blockedMcc == other.blockedMcc && - this.cardTokens == other.cardTokens && - this.programLevel == other.programLevel && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountTokens, - allowedCountries, - allowedMcc, - blockedCountries, - blockedMcc, - cardTokens, - programLevel, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AuthRuleCreateBody{accountTokens=$accountTokens, allowedCountries=$allowedCountries, allowedMcc=$allowedMcc, blockedCountries=$blockedCountries, blockedMcc=$blockedMcc, cardTokens=$cardTokens, programLevel=$programLevel, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -249,6 +211,44 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AuthRuleCreateBody && + this.accountTokens == other.accountTokens && + this.allowedCountries == other.allowedCountries && + this.allowedMcc == other.allowedMcc && + this.blockedCountries == other.blockedCountries && + this.blockedMcc == other.blockedMcc && + this.cardTokens == other.cardTokens && + this.programLevel == other.programLevel && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountTokens, + allowedCountries, + allowedMcc, + blockedCountries, + blockedMcc, + cardTokens, + programLevel, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AuthRuleCreateBody{accountTokens=$accountTokens, allowedCountries=$allowedCountries, allowedMcc=$allowedMcc, blockedCountries=$blockedCountries, blockedMcc=$blockedMcc, cardTokens=$cardTokens, programLevel=$programLevel, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleMigrateV1ToV2Response.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleMigrateV1ToV2Response.kt index e77c19b02..83ab158eb 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleMigrateV1ToV2Response.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleMigrateV1ToV2Response.kt @@ -44,8 +44,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun token(): String = token.getRequired("token") /** The state of the Auth Rule */ @@ -110,44 +108,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AuthRuleMigrateV1ToV2Response && - this.token == other.token && - this.state == other.state && - this.programLevel == other.programLevel && - this.cardTokens == other.cardTokens && - this.accountTokens == other.accountTokens && - this.type == other.type && - this.currentVersion == other.currentVersion && - this.draftVersion == other.draftVersion && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - state, - programLevel, - cardTokens, - accountTokens, - type, - currentVersion, - draftVersion, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AuthRuleMigrateV1ToV2Response{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -284,8 +244,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -312,32 +270,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CurrentVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -547,8 +479,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -566,26 +496,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -646,8 +556,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -681,34 +589,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1105,9 +985,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true } + + return other is CurrentVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = DraftVersion.Builder::class) @@ -1121,8 +1081,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -1149,32 +1107,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is DraftVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1384,8 +1316,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -1403,26 +1333,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1483,8 +1393,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -1518,34 +1426,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1942,9 +1822,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is DraftVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } class AuthRuleState @@ -2060,4 +2020,44 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AuthRuleMigrateV1ToV2Response && + this.token == other.token && + this.state == other.state && + this.programLevel == other.programLevel && + this.cardTokens == other.cardTokens && + this.accountTokens == other.accountTokens && + this.type == other.type && + this.currentVersion == other.currentVersion && + this.draftVersion == other.draftVersion && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + state, + programLevel, + cardTokens, + accountTokens, + type, + currentVersion, + draftVersion, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AuthRuleMigrateV1ToV2Response{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleRemoveParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleRemoveParams.kt index 1afa21d58..62256c3eb 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleRemoveParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleRemoveParams.kt @@ -54,8 +54,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Array of account_token(s) identifying the accounts that the Auth Rule applies to. Note * that only this field or `card_tokens` can be provided for a given Auth Rule. @@ -77,34 +75,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AuthRuleRemoveBody && - this.accountTokens == other.accountTokens && - this.cardTokens == other.cardTokens && - this.programLevel == other.programLevel && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountTokens, - cardTokens, - programLevel, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AuthRuleRemoveBody{accountTokens=$accountTokens, cardTokens=$cardTokens, programLevel=$programLevel, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -167,6 +137,36 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AuthRuleRemoveBody && + this.accountTokens == other.accountTokens && + this.cardTokens == other.cardTokens && + this.programLevel == other.programLevel && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountTokens, + cardTokens, + programLevel, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AuthRuleRemoveBody{accountTokens=$accountTokens, cardTokens=$cardTokens, programLevel=$programLevel, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleRemoveResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleRemoveResponse.kt index 071db59dd..4a3be179a 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleRemoveResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleRemoveResponse.kt @@ -27,8 +27,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun accountTokens(): Optional> = Optional.ofNullable(accountTokens.getNullable("account_tokens")) @@ -59,34 +57,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AuthRuleRemoveResponse && - this.accountTokens == other.accountTokens && - this.cardTokens == other.cardTokens && - this.programLevel == other.programLevel && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountTokens, - cardTokens, - programLevel, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AuthRuleRemoveResponse{accountTokens=$accountTokens, cardTokens=$cardTokens, programLevel=$programLevel, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -151,4 +121,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AuthRuleRemoveResponse && + this.accountTokens == other.accountTokens && + this.cardTokens == other.cardTokens && + this.programLevel == other.programLevel && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountTokens, + cardTokens, + programLevel, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AuthRuleRemoveResponse{accountTokens=$accountTokens, cardTokens=$cardTokens, programLevel=$programLevel, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleRetrieveResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleRetrieveResponse.kt index 1abad93b3..7801a7ec6 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleRetrieveResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleRetrieveResponse.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun data(): Optional> = Optional.ofNullable(data.getNullable("data")) @JsonProperty("data") @ExcludeMissing fun _data() = data @@ -44,26 +42,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AuthRuleRetrieveResponse && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(data, additionalProperties) - } - return hashCode - } - - override fun toString() = - "AuthRuleRetrieveResponse{data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -106,4 +84,26 @@ private constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AuthRuleRetrieveResponse && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(data, additionalProperties) + } + return hashCode + } + + override fun toString() = + "AuthRuleRetrieveResponse{data=$data, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleUpdateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleUpdateParams.kt index d1ba17d10..c14df00c5 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleUpdateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleUpdateParams.kt @@ -69,8 +69,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Array of country codes for which the Auth Rule will permit transactions. Note that only * this field or `blocked_countries` can be used for a given Auth Rule. @@ -102,36 +100,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AuthRuleUpdateBody && - this.allowedCountries == other.allowedCountries && - this.allowedMcc == other.allowedMcc && - this.blockedCountries == other.blockedCountries && - this.blockedMcc == other.blockedMcc && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - allowedCountries, - allowedMcc, - blockedCountries, - blockedMcc, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AuthRuleUpdateBody{allowedCountries=$allowedCountries, allowedMcc=$allowedMcc, blockedCountries=$blockedCountries, blockedMcc=$blockedMcc, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -211,6 +179,38 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AuthRuleUpdateBody && + this.allowedCountries == other.allowedCountries && + this.allowedMcc == other.allowedMcc && + this.blockedCountries == other.blockedCountries && + this.blockedMcc == other.blockedMcc && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + allowedCountries, + allowedMcc, + blockedCountries, + blockedMcc, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AuthRuleUpdateBody{allowedCountries=$allowedCountries, allowedMcc=$allowedMcc, blockedCountries=$blockedCountries, blockedMcc=$blockedMcc, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2ApplyParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2ApplyParams.kt index 70a35ae52..c55cebd4e 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2ApplyParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2ApplyParams.kt @@ -377,8 +377,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Account tokens to which the Auth Rule applies. */ @JsonProperty("account_tokens") fun accountTokens(): List? = accountTokens @@ -388,26 +386,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ApplyAuthRuleRequestAccountTokens && - this.accountTokens == other.accountTokens && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(accountTokens, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ApplyAuthRuleRequestAccountTokens{accountTokens=$accountTokens, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -453,6 +431,28 @@ constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ApplyAuthRuleRequestAccountTokens && + this.accountTokens == other.accountTokens && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(accountTokens, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ApplyAuthRuleRequestAccountTokens{accountTokens=$accountTokens, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = ApplyAuthRuleRequestCardTokens.Builder::class) @@ -463,8 +463,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Card tokens to which the Auth Rule applies. */ @JsonProperty("card_tokens") fun cardTokens(): List? = cardTokens @@ -474,26 +472,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ApplyAuthRuleRequestCardTokens && - this.cardTokens == other.cardTokens && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(cardTokens, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ApplyAuthRuleRequestCardTokens{cardTokens=$cardTokens, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -536,6 +514,28 @@ constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ApplyAuthRuleRequestCardTokens && + this.cardTokens == other.cardTokens && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(cardTokens, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ApplyAuthRuleRequestCardTokens{cardTokens=$cardTokens, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = ApplyAuthRuleRequestProgramLevel.Builder::class) @@ -546,8 +546,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Whether the Auth Rule applies to all authorizations on the card program. */ @JsonProperty("program_level") fun programLevel(): Boolean? = programLevel @@ -557,26 +555,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ApplyAuthRuleRequestProgramLevel && - this.programLevel == other.programLevel && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(programLevel, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ApplyAuthRuleRequestProgramLevel{programLevel=$programLevel, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -618,5 +596,27 @@ constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ApplyAuthRuleRequestProgramLevel && + this.programLevel == other.programLevel && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(programLevel, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ApplyAuthRuleRequestProgramLevel{programLevel=$programLevel, additionalProperties=$additionalProperties}" } } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2CreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2CreateParams.kt index badf02316..793fc78f3 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2CreateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2CreateParams.kt @@ -379,8 +379,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Account tokens to which the Auth Rule applies. */ @JsonProperty("account_tokens") fun accountTokens(): List? = accountTokens @@ -396,34 +394,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CreateAuthRuleRequestAccountTokens && - this.accountTokens == other.accountTokens && - this.type == other.type && - this.parameters == other.parameters && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountTokens, - type, - parameters, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CreateAuthRuleRequestAccountTokens{accountTokens=$accountTokens, type=$type, parameters=$parameters, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -630,8 +600,6 @@ constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -649,26 +617,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -729,8 +677,6 @@ constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -764,34 +710,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1188,7 +1106,59 @@ constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" } } @@ -1248,6 +1218,36 @@ constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CreateAuthRuleRequestAccountTokens && + this.accountTokens == other.accountTokens && + this.type == other.type && + this.parameters == other.parameters && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountTokens, + type, + parameters, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CreateAuthRuleRequestAccountTokens{accountTokens=$accountTokens, type=$type, parameters=$parameters, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = CreateAuthRuleRequestCardTokens.Builder::class) @@ -1260,8 +1260,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Card tokens to which the Auth Rule applies. */ @JsonProperty("card_tokens") fun cardTokens(): List? = cardTokens @@ -1277,34 +1275,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CreateAuthRuleRequestCardTokens && - this.cardTokens == other.cardTokens && - this.type == other.type && - this.parameters == other.parameters && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - cardTokens, - type, - parameters, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CreateAuthRuleRequestCardTokens{cardTokens=$cardTokens, type=$type, parameters=$parameters, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1508,8 +1478,6 @@ constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -1527,26 +1495,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1607,8 +1555,6 @@ constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -1642,34 +1588,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2066,7 +1984,59 @@ constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" } } @@ -2126,6 +2096,36 @@ constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CreateAuthRuleRequestCardTokens && + this.cardTokens == other.cardTokens && + this.type == other.type && + this.parameters == other.parameters && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + cardTokens, + type, + parameters, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CreateAuthRuleRequestCardTokens{cardTokens=$cardTokens, type=$type, parameters=$parameters, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = CreateAuthRuleRequestProgramLevel.Builder::class) @@ -2138,8 +2138,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Whether the Auth Rule applies to all authorizations on the card program. */ @JsonProperty("program_level") fun programLevel(): Boolean? = programLevel @@ -2155,34 +2153,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CreateAuthRuleRequestProgramLevel && - this.programLevel == other.programLevel && - this.type == other.type && - this.parameters == other.parameters && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - programLevel, - type, - parameters, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CreateAuthRuleRequestProgramLevel{programLevel=$programLevel, type=$type, parameters=$parameters, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2386,8 +2356,6 @@ constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -2405,26 +2373,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2485,8 +2433,6 @@ constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -2520,34 +2466,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2944,7 +2862,59 @@ constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" } } @@ -3004,5 +2974,35 @@ constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CreateAuthRuleRequestProgramLevel && + this.programLevel == other.programLevel && + this.type == other.type && + this.parameters == other.parameters && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + programLevel, + type, + parameters, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CreateAuthRuleRequestProgramLevel{programLevel=$programLevel, type=$type, parameters=$parameters, additionalProperties=$additionalProperties}" } } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2DraftParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2DraftParams.kt index 1df9a5f6c..b2f2386ee 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2DraftParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2DraftParams.kt @@ -65,8 +65,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ @JsonProperty("parameters") fun parameters(): AuthRuleParameters? = parameters @@ -76,26 +74,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AuthRuleV2DraftBody && - this.parameters == other.parameters && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(parameters, additionalProperties) - } - return hashCode - } - - override fun toString() = - "AuthRuleV2DraftBody{parameters=$parameters, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -133,6 +111,28 @@ constructor( fun build(): AuthRuleV2DraftBody = AuthRuleV2DraftBody(parameters, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AuthRuleV2DraftBody && + this.parameters == other.parameters && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(parameters, additionalProperties) + } + return hashCode + } + + override fun toString() = + "AuthRuleV2DraftBody{parameters=$parameters, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams @@ -417,8 +417,6 @@ constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -436,26 +434,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -514,8 +492,6 @@ constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -549,34 +525,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -967,7 +915,59 @@ constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" } } } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2UpdateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2UpdateParams.kt index 351a5a5e0..976a76de8 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2UpdateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2UpdateParams.kt @@ -55,8 +55,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * The desired state of the Auth Rule. * @@ -72,26 +70,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AuthRuleV2UpdateBody && - this.state == other.state && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(state, additionalProperties) - } - return hashCode - } - - override fun toString() = - "AuthRuleV2UpdateBody{state=$state, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -134,6 +112,28 @@ constructor( fun build(): AuthRuleV2UpdateBody = AuthRuleV2UpdateBody(state, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AuthRuleV2UpdateBody && + this.state == other.state && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(state, additionalProperties) + } + return hashCode + } + + override fun toString() = + "AuthRuleV2UpdateBody{state=$state, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthStreamSecret.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthStreamSecret.kt index 79c16c95d..b0bc0f856 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthStreamSecret.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthStreamSecret.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The shared HMAC ASA secret */ fun secret(): Optional = Optional.ofNullable(secret.getNullable("secret")) @@ -46,26 +44,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AuthStreamSecret && - this.secret == other.secret && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(secret, additionalProperties) - } - return hashCode - } - - override fun toString() = - "AuthStreamSecret{secret=$secret, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -107,4 +85,26 @@ private constructor( fun build(): AuthStreamSecret = AuthStreamSecret(secret, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AuthStreamSecret && + this.secret == other.secret && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(secret, additionalProperties) + } + return hashCode + } + + override fun toString() = + "AuthStreamSecret{secret=$secret, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthenticationRetrieveResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthenticationRetrieveResponse.kt index fecd8b398..de10f7e6b 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthenticationRetrieveResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthenticationRetrieveResponse.kt @@ -45,8 +45,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Type of account/card that is being used for the transaction. Maps to EMV 3DS field * `acctType`. @@ -253,62 +251,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AuthenticationRetrieveResponse && - this.accountType == other.accountType && - this.additionalData == other.additionalData && - this.app == other.app && - this.authenticationRequestType == other.authenticationRequestType && - this.authenticationResult == other.authenticationResult && - this.browser == other.browser && - this.cardExpiryCheck == other.cardExpiryCheck && - this.cardToken == other.cardToken && - this.cardholder == other.cardholder && - this.channel == other.channel && - this.created == other.created && - this.decisionMadeBy == other.decisionMadeBy && - this.merchant == other.merchant && - this.messageCategory == other.messageCategory && - this.threeRiRequestType == other.threeRiRequestType && - this.token == other.token && - this.transaction == other.transaction && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountType, - additionalData, - app, - authenticationRequestType, - authenticationResult, - browser, - cardExpiryCheck, - cardToken, - cardholder, - channel, - created, - decisionMadeBy, - merchant, - messageCategory, - threeRiRequestType, - token, - transaction, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AuthenticationRetrieveResponse{accountType=$accountType, additionalData=$additionalData, app=$app, authenticationRequestType=$authenticationRequestType, authenticationResult=$authenticationResult, browser=$browser, cardExpiryCheck=$cardExpiryCheck, cardToken=$cardToken, cardholder=$cardholder, channel=$channel, created=$created, decisionMadeBy=$decisionMadeBy, merchant=$merchant, messageCategory=$messageCategory, threeRiRequestType=$threeRiRequestType, token=$token, transaction=$transaction, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -818,8 +760,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Indicates whether the shipping address and billing address provided by the cardholder are * the same. This value - and assessment of whether the addresses match - is provided @@ -930,44 +870,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Cardholder && - this.addressMatch == other.addressMatch && - this.billingAddress == other.billingAddress && - this.email == other.email && - this.name == other.name && - this.phoneNumberHome == other.phoneNumberHome && - this.phoneNumberMobile == other.phoneNumberMobile && - this.phoneNumberWork == other.phoneNumberWork && - this.shippingAddress == other.shippingAddress && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - addressMatch, - billingAddress, - email, - name, - phoneNumberHome, - phoneNumberMobile, - phoneNumberWork, - shippingAddress, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Cardholder{addressMatch=$addressMatch, billingAddress=$billingAddress, email=$email, name=$name, phoneNumberHome=$phoneNumberHome, phoneNumberMobile=$phoneNumberMobile, phoneNumberWork=$phoneNumberWork, shippingAddress=$shippingAddress, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1157,8 +1059,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** First line of the street address provided by the cardholder. */ fun address1(): Optional = Optional.ofNullable(address1.getNullable("address1")) @@ -1220,40 +1120,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ThreeDSAddress && - this.address1 == other.address1 && - this.address2 == other.address2 && - this.address3 == other.address3 && - this.city == other.city && - this.country == other.country && - this.postalCode == other.postalCode && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address1, - address2, - address3, - city, - country, - postalCode, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ThreeDSAddress{address1=$address1, address2=$address2, address3=$address3, city=$city, country=$country, postalCode=$postalCode, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1362,7 +1228,83 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ThreeDSAddress && + this.address1 == other.address1 && + this.address2 == other.address2 && + this.address3 == other.address3 && + this.city == other.city && + this.country == other.country && + this.postalCode == other.postalCode && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address1, + address2, + address3, + city, + country, + postalCode, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ThreeDSAddress{address1=$address1, address2=$address2, address3=$address3, city=$city, country=$country, postalCode=$postalCode, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Cardholder && + this.addressMatch == other.addressMatch && + this.billingAddress == other.billingAddress && + this.email == other.email && + this.name == other.name && + this.phoneNumberHome == other.phoneNumberHome && + this.phoneNumberMobile == other.phoneNumberMobile && + this.phoneNumberWork == other.phoneNumberWork && + this.shippingAddress == other.shippingAddress && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + addressMatch, + billingAddress, + email, + name, + phoneNumberHome, + phoneNumberMobile, + phoneNumberWork, + shippingAddress, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Cardholder{addressMatch=$addressMatch, billingAddress=$billingAddress, email=$email, name=$name, phoneNumberHome=$phoneNumberHome, phoneNumberMobile=$phoneNumberMobile, phoneNumberWork=$phoneNumberWork, shippingAddress=$shippingAddress, additionalProperties=$additionalProperties}" } class Channel @@ -1519,8 +1461,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Country code of the merchant requesting 3DS authentication. Maps to EMV 3DS field * merchantCountryCode. @@ -1592,38 +1532,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Merchant && - this.country == other.country && - this.id == other.id && - this.mcc == other.mcc && - this.name == other.name && - this.riskIndicator == other.riskIndicator && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - country, - id, - mcc, - name, - riskIndicator, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Merchant{country=$country, id=$id, mcc=$mcc, name=$name, riskIndicator=$riskIndicator, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1762,8 +1670,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * In transactions with electronic delivery, email address to which merchandise is * delivered. Maps to EMV 3DS field deliveryEmailAddress. @@ -1914,47 +1820,7 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is RiskIndicator && - this.deliveryEmailAddress == other.deliveryEmailAddress && - this.deliveryTimeFrame == other.deliveryTimeFrame && - this.giftCardAmount == other.giftCardAmount && - this.giftCardCount == other.giftCardCount && - this.giftCardCurrency == other.giftCardCurrency && - this.orderAvailability == other.orderAvailability && - this.preOrderAvailableDate == other.preOrderAvailableDate && - this.reorderItems == other.reorderItems && - this.shippingMethod == other.shippingMethod && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - deliveryEmailAddress, - deliveryTimeFrame, - giftCardAmount, - giftCardCount, - giftCardCurrency, - orderAvailability, - preOrderAvailableDate, - reorderItems, - shippingMethod, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "RiskIndicator{deliveryEmailAddress=$deliveryEmailAddress, deliveryTimeFrame=$deliveryTimeFrame, giftCardAmount=$giftCardAmount, giftCardCount=$giftCardCount, giftCardCurrency=$giftCardCurrency, orderAvailability=$orderAvailability, preOrderAvailableDate=$preOrderAvailableDate, reorderItems=$reorderItems, shippingMethod=$shippingMethod, additionalProperties=$additionalProperties}" - - companion object { + companion object { @JvmStatic fun builder() = Builder() } @@ -2478,7 +2344,83 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is RiskIndicator && + this.deliveryEmailAddress == other.deliveryEmailAddress && + this.deliveryTimeFrame == other.deliveryTimeFrame && + this.giftCardAmount == other.giftCardAmount && + this.giftCardCount == other.giftCardCount && + this.giftCardCurrency == other.giftCardCurrency && + this.orderAvailability == other.orderAvailability && + this.preOrderAvailableDate == other.preOrderAvailableDate && + this.reorderItems == other.reorderItems && + this.shippingMethod == other.shippingMethod && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + deliveryEmailAddress, + deliveryTimeFrame, + giftCardAmount, + giftCardCount, + giftCardCurrency, + orderAvailability, + preOrderAvailableDate, + reorderItems, + shippingMethod, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "RiskIndicator{deliveryEmailAddress=$deliveryEmailAddress, deliveryTimeFrame=$deliveryTimeFrame, giftCardAmount=$giftCardAmount, giftCardCount=$giftCardCount, giftCardCurrency=$giftCardCurrency, orderAvailability=$orderAvailability, preOrderAvailableDate=$preOrderAvailableDate, reorderItems=$reorderItems, shippingMethod=$shippingMethod, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Merchant && + this.country == other.country && + this.id == other.id && + this.mcc == other.mcc && + this.name == other.name && + this.riskIndicator == other.riskIndicator && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + country, + id, + mcc, + name, + riskIndicator, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Merchant{country=$country, id=$id, mcc=$mcc, name=$name, riskIndicator=$riskIndicator, additionalProperties=$additionalProperties}" } class MessageCategory @@ -2557,8 +2499,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Mastercard only: Indicates whether the network would have considered the authentication * request to be low risk or not. @@ -2601,32 +2541,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AdditionalData && - this.networkDecision == other.networkDecision && - this.networkRiskScore == other.networkRiskScore && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - networkDecision, - networkRiskScore, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AdditionalData{networkDecision=$networkDecision, networkRiskScore=$networkRiskScore, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2757,6 +2671,34 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AdditionalData && + this.networkDecision == other.networkDecision && + this.networkRiskScore == other.networkRiskScore && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + networkDecision, + networkRiskScore, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AdditionalData{networkDecision=$networkDecision, networkRiskScore=$networkRiskScore, additionalProperties=$additionalProperties}" } /** @@ -2774,8 +2716,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Device information gathered from the cardholder's device - JSON name/value pairs that is * Base64url encoded. Maps to EMV 3DS field deviceInfo. @@ -2815,32 +2755,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is App && - this.deviceInfo == other.deviceInfo && - this.ip == other.ip && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - deviceInfo, - ip, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "App{deviceInfo=$deviceInfo, ip=$ip, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2908,6 +2822,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is App && + this.deviceInfo == other.deviceInfo && + this.ip == other.ip && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + deviceInfo, + ip, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "App{deviceInfo=$deviceInfo, ip=$ip, additionalProperties=$additionalProperties}" } class AuthenticationRequestType @@ -3044,8 +2986,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * IP address of the browser as returned by the HTTP headers to the 3DS requestor (e.g., * merchant or digital wallet). Maps to EMV 3DS field browserIP. @@ -3136,40 +3076,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Browser && - this.ip == other.ip && - this.javaEnabled == other.javaEnabled && - this.javascriptEnabled == other.javascriptEnabled && - this.language == other.language && - this.timeZone == other.timeZone && - this.userAgent == other.userAgent && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - ip, - javaEnabled, - javascriptEnabled, - language, - timeZone, - userAgent, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Browser{ip=$ip, javaEnabled=$javaEnabled, javascriptEnabled=$javascriptEnabled, language=$language, timeZone=$timeZone, userAgent=$userAgent, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -3306,6 +3212,42 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Browser && + this.ip == other.ip && + this.javaEnabled == other.javaEnabled && + this.javascriptEnabled == other.javascriptEnabled && + this.language == other.language && + this.timeZone == other.timeZone && + this.userAgent == other.userAgent && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + ip, + javaEnabled, + javascriptEnabled, + language, + timeZone, + userAgent, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Browser{ip=$ip, javaEnabled=$javaEnabled, javascriptEnabled=$javascriptEnabled, language=$language, timeZone=$timeZone, userAgent=$userAgent, additionalProperties=$additionalProperties}" } class ThreeRiRequestType @@ -3478,8 +3420,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Amount of the purchase in minor units of currency with all punctuation removed. Maps to * EMV 3DS field purchaseAmount. @@ -3553,38 +3493,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Transaction && - this.amount == other.amount && - this.currency == other.currency && - this.currencyExponent == other.currencyExponent && - this.dateTime == other.dateTime && - this.type == other.type && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - currency, - currencyExponent, - dateTime, - type, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Transaction{amount=$amount, currency=$currency, currencyExponent=$currencyExponent, dateTime=$dateTime, type=$type, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -3776,5 +3684,97 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Transaction && + this.amount == other.amount && + this.currency == other.currency && + this.currencyExponent == other.currencyExponent && + this.dateTime == other.dateTime && + this.type == other.type && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + currency, + currencyExponent, + dateTime, + type, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Transaction{amount=$amount, currency=$currency, currencyExponent=$currencyExponent, dateTime=$dateTime, type=$type, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AuthenticationRetrieveResponse && + this.accountType == other.accountType && + this.additionalData == other.additionalData && + this.app == other.app && + this.authenticationRequestType == other.authenticationRequestType && + this.authenticationResult == other.authenticationResult && + this.browser == other.browser && + this.cardExpiryCheck == other.cardExpiryCheck && + this.cardToken == other.cardToken && + this.cardholder == other.cardholder && + this.channel == other.channel && + this.created == other.created && + this.decisionMadeBy == other.decisionMadeBy && + this.merchant == other.merchant && + this.messageCategory == other.messageCategory && + this.threeRiRequestType == other.threeRiRequestType && + this.token == other.token && + this.transaction == other.transaction && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountType, + additionalData, + app, + authenticationRequestType, + authenticationResult, + browser, + cardExpiryCheck, + cardToken, + cardholder, + channel, + created, + decisionMadeBy, + merchant, + messageCategory, + threeRiRequestType, + token, + transaction, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "AuthenticationRetrieveResponse{accountType=$accountType, additionalData=$additionalData, app=$app, authenticationRequestType=$authenticationRequestType, authenticationResult=$authenticationResult, browser=$browser, cardExpiryCheck=$cardExpiryCheck, cardToken=$cardToken, cardholder=$cardholder, channel=$channel, created=$created, decisionMadeBy=$decisionMadeBy, merchant=$merchant, messageCategory=$messageCategory, threeRiRequestType=$threeRiRequestType, token=$token, transaction=$transaction, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthenticationSimulateResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthenticationSimulateResponse.kt index 51198c1bc..5c5eafcdf 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthenticationSimulateResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthenticationSimulateResponse.kt @@ -26,8 +26,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Debugging request ID to share with Lithic Support team. */ fun debuggingRequestId(): Optional = Optional.ofNullable(debuggingRequestId.getNullable("debugging_request_id")) @@ -63,32 +61,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AuthenticationSimulateResponse && - this.debuggingRequestId == other.debuggingRequestId && - this.token == other.token && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - debuggingRequestId, - token, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AuthenticationSimulateResponse{debuggingRequestId=$debuggingRequestId, token=$token, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -153,4 +125,32 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AuthenticationSimulateResponse && + this.debuggingRequestId == other.debuggingRequestId && + this.token == other.token && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + debuggingRequestId, + token, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AuthenticationSimulateResponse{debuggingRequestId=$debuggingRequestId, token=$token, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Balance.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Balance.kt index 69929bcae..3c69e872d 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Balance.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Balance.kt @@ -38,8 +38,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Funds available for spend in the currency's smallest unit (e.g., cents for USD) */ fun availableAmount(): Long = availableAmount.getRequired("available_amount") @@ -151,48 +149,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Balance && - this.availableAmount == other.availableAmount && - this.created == other.created && - this.currency == other.currency && - this.financialAccountToken == other.financialAccountToken && - this.financialAccountType == other.financialAccountType && - this.lastTransactionEventToken == other.lastTransactionEventToken && - this.lastTransactionToken == other.lastTransactionToken && - this.pendingAmount == other.pendingAmount && - this.totalAmount == other.totalAmount && - this.updated == other.updated && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - availableAmount, - created, - currency, - financialAccountToken, - financialAccountType, - lastTransactionEventToken, - lastTransactionToken, - pendingAmount, - totalAmount, - updated, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Balance{availableAmount=$availableAmount, created=$created, currency=$currency, financialAccountToken=$financialAccountToken, financialAccountType=$financialAccountType, lastTransactionEventToken=$lastTransactionEventToken, lastTransactionToken=$lastTransactionToken, pendingAmount=$pendingAmount, totalAmount=$totalAmount, updated=$updated, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -437,4 +393,48 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Balance && + this.availableAmount == other.availableAmount && + this.created == other.created && + this.currency == other.currency && + this.financialAccountToken == other.financialAccountToken && + this.financialAccountType == other.financialAccountType && + this.lastTransactionEventToken == other.lastTransactionEventToken && + this.lastTransactionToken == other.lastTransactionToken && + this.pendingAmount == other.pendingAmount && + this.totalAmount == other.totalAmount && + this.updated == other.updated && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + availableAmount, + created, + currency, + financialAccountToken, + financialAccountType, + lastTransactionEventToken, + lastTransactionToken, + pendingAmount, + totalAmount, + updated, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Balance{availableAmount=$availableAmount, created=$created, currency=$currency, financialAccountToken=$financialAccountToken, financialAccountType=$financialAccountType, lastTransactionEventToken=$lastTransactionEventToken, lastTransactionToken=$lastTransactionToken, pendingAmount=$pendingAmount, totalAmount=$totalAmount, updated=$updated, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/BalanceListResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/BalanceListResponse.kt index 73bc432a3..1a1a07baf 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/BalanceListResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/BalanceListResponse.kt @@ -38,8 +38,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Funds available for spend in the currency's smallest unit (e.g., cents for USD) */ fun availableAmount(): Long = availableAmount.getRequired("available_amount") @@ -145,48 +143,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is BalanceListResponse && - this.availableAmount == other.availableAmount && - this.created == other.created && - this.currency == other.currency && - this.token == other.token && - this.type == other.type && - this.lastTransactionEventToken == other.lastTransactionEventToken && - this.lastTransactionToken == other.lastTransactionToken && - this.pendingAmount == other.pendingAmount && - this.totalAmount == other.totalAmount && - this.updated == other.updated && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - availableAmount, - created, - currency, - token, - type, - lastTransactionEventToken, - lastTransactionToken, - pendingAmount, - totalAmount, - updated, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "BalanceListResponse{availableAmount=$availableAmount, created=$created, currency=$currency, token=$token, type=$type, lastTransactionEventToken=$lastTransactionEventToken, lastTransactionToken=$lastTransactionToken, pendingAmount=$pendingAmount, totalAmount=$totalAmount, updated=$updated, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -425,4 +381,48 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is BalanceListResponse && + this.availableAmount == other.availableAmount && + this.created == other.created && + this.currency == other.currency && + this.token == other.token && + this.type == other.type && + this.lastTransactionEventToken == other.lastTransactionEventToken && + this.lastTransactionToken == other.lastTransactionToken && + this.pendingAmount == other.pendingAmount && + this.totalAmount == other.totalAmount && + this.updated == other.updated && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + availableAmount, + created, + currency, + token, + type, + lastTransactionEventToken, + lastTransactionToken, + pendingAmount, + totalAmount, + updated, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "BalanceListResponse{availableAmount=$availableAmount, created=$created, currency=$currency, token=$token, type=$type, lastTransactionEventToken=$lastTransactionEventToken, lastTransactionToken=$lastTransactionToken, pendingAmount=$pendingAmount, totalAmount=$totalAmount, updated=$updated, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferCreateParams.kt index f5bcf864c..28ef5b727 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferCreateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferCreateParams.kt @@ -83,8 +83,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Amount to be transferred in the currency’s smallest unit (e.g., cents for USD). This * should always be a positive value. @@ -129,44 +127,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is BookTransferCreateBody && - this.amount == other.amount && - this.category == other.category && - this.fromFinancialAccountToken == other.fromFinancialAccountToken && - this.subtype == other.subtype && - this.toFinancialAccountToken == other.toFinancialAccountToken && - this.type == other.type && - this.token == other.token && - this.memo == other.memo && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - category, - fromFinancialAccountToken, - subtype, - toFinancialAccountToken, - type, - token, - memo, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "BookTransferCreateBody{amount=$amount, category=$category, fromFinancialAccountToken=$fromFinancialAccountToken, subtype=$subtype, toFinancialAccountToken=$toFinancialAccountToken, type=$type, token=$token, memo=$memo, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -271,6 +231,46 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is BookTransferCreateBody && + this.amount == other.amount && + this.category == other.category && + this.fromFinancialAccountToken == other.fromFinancialAccountToken && + this.subtype == other.subtype && + this.toFinancialAccountToken == other.toFinancialAccountToken && + this.type == other.type && + this.token == other.token && + this.memo == other.memo && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + category, + fromFinancialAccountToken, + subtype, + toFinancialAccountToken, + type, + token, + memo, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "BookTransferCreateBody{amount=$amount, category=$category, fromFinancialAccountToken=$fromFinancialAccountToken, subtype=$subtype, toFinancialAccountToken=$toFinancialAccountToken, type=$type, token=$token, memo=$memo, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferResponse.kt index 61f5f9677..3d7dbad23 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferResponse.kt @@ -39,8 +39,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Category of the book transfer */ fun category(): Category = category.getRequired("category") @@ -179,52 +177,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is BookTransferResponse && - this.category == other.category && - this.created == other.created && - this.currency == other.currency && - this.events == other.events && - this.fromFinancialAccountToken == other.fromFinancialAccountToken && - this.pendingAmount == other.pendingAmount && - this.result == other.result && - this.settledAmount == other.settledAmount && - this.status == other.status && - this.toFinancialAccountToken == other.toFinancialAccountToken && - this.token == other.token && - this.updated == other.updated && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - category, - created, - currency, - events, - fromFinancialAccountToken, - pendingAmount, - result, - settledAmount, - status, - toFinancialAccountToken, - token, - updated, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "BookTransferResponse{category=$category, created=$created, currency=$currency, events=$events, fromFinancialAccountToken=$fromFinancialAccountToken, pendingAmount=$pendingAmount, result=$result, settledAmount=$settledAmount, status=$status, toFinancialAccountToken=$toFinancialAccountToken, token=$token, updated=$updated, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -542,8 +494,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Amount of the financial event that has been settled in the currency's smallest unit * (e.g., cents). @@ -625,44 +575,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is BookTransferEvent && - this.amount == other.amount && - this.type == other.type && - this.result == other.result && - this.created == other.created && - this.token == other.token && - this.subtype == other.subtype && - this.memo == other.memo && - this.detailedResults == other.detailedResults && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - type, - result, - created, - token, - subtype, - memo, - detailedResults, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "BookTransferEvent{amount=$amount, type=$type, result=$result, created=$created, token=$token, subtype=$subtype, memo=$memo, detailedResults=$detailedResults, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -914,6 +826,46 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is BookTransferEvent && + this.amount == other.amount && + this.type == other.type && + this.result == other.result && + this.created == other.created && + this.token == other.token && + this.subtype == other.subtype && + this.memo == other.memo && + this.detailedResults == other.detailedResults && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + type, + result, + created, + token, + subtype, + memo, + detailedResults, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "BookTransferEvent{amount=$amount, type=$type, result=$result, created=$created, token=$token, subtype=$subtype, memo=$memo, detailedResults=$detailedResults, additionalProperties=$additionalProperties}" } class Result @@ -1035,4 +987,52 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is BookTransferResponse && + this.category == other.category && + this.created == other.created && + this.currency == other.currency && + this.events == other.events && + this.fromFinancialAccountToken == other.fromFinancialAccountToken && + this.pendingAmount == other.pendingAmount && + this.result == other.result && + this.settledAmount == other.settledAmount && + this.status == other.status && + this.toFinancialAccountToken == other.toFinancialAccountToken && + this.token == other.token && + this.updated == other.updated && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + category, + created, + currency, + events, + fromFinancialAccountToken, + pendingAmount, + result, + settledAmount, + status, + toFinancialAccountToken, + token, + updated, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "BookTransferResponse{category=$category, created=$created, currency=$currency, events=$events, fromFinancialAccountToken=$fromFinancialAccountToken, pendingAmount=$pendingAmount, result=$result, settledAmount=$settledAmount, status=$status, toFinancialAccountToken=$toFinancialAccountToken, token=$token, updated=$updated, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferReverseParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferReverseParams.kt index b016eb714..dc1f50108 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferReverseParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferReverseParams.kt @@ -51,8 +51,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Optional descriptor for the reversal. */ @JsonProperty("memo") fun memo(): String? = memo @@ -62,26 +60,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is BookTransferReverseBody && - this.memo == other.memo && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(memo, additionalProperties) - } - return hashCode - } - - override fun toString() = - "BookTransferReverseBody{memo=$memo, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -118,6 +96,28 @@ constructor( fun build(): BookTransferReverseBody = BookTransferReverseBody(memo, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is BookTransferReverseBody && + this.memo == other.memo && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(memo, additionalProperties) + } + return hashCode + } + + override fun toString() = + "BookTransferReverseBody{memo=$memo, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Card.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Card.kt index d91d688ac..df57a33da 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Card.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Card.kt @@ -50,8 +50,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Globally unique identifier for the account to which the card belongs. */ fun accountToken(): String = accountToken.getRequired("account_token") @@ -361,72 +359,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Card && - this.accountToken == other.accountToken && - this.authRuleTokens == other.authRuleTokens && - this.cardProgramToken == other.cardProgramToken && - this.cardholderCurrency == other.cardholderCurrency && - this.created == other.created && - this.cvv == other.cvv && - this.digitalCardArtToken == other.digitalCardArtToken && - this.expMonth == other.expMonth && - this.expYear == other.expYear && - this.funding == other.funding && - this.hostname == other.hostname && - this.lastFour == other.lastFour && - this.memo == other.memo && - this.pan == other.pan && - this.pendingCommands == other.pendingCommands && - this.pinStatus == other.pinStatus && - this.productId == other.productId && - this.spendLimit == other.spendLimit && - this.spendLimitDuration == other.spendLimitDuration && - this.state == other.state && - this.token == other.token && - this.type == other.type && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountToken, - authRuleTokens, - cardProgramToken, - cardholderCurrency, - created, - cvv, - digitalCardArtToken, - expMonth, - expYear, - funding, - hostname, - lastFour, - memo, - pan, - pendingCommands, - pinStatus, - productId, - spendLimit, - spendLimitDuration, - state, - token, - type, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Card{accountToken=$accountToken, authRuleTokens=$authRuleTokens, cardProgramToken=$cardProgramToken, cardholderCurrency=$cardholderCurrency, created=$created, cvv=$cvv, digitalCardArtToken=$digitalCardArtToken, expMonth=$expMonth, expYear=$expYear, funding=$funding, hostname=$hostname, lastFour=$lastFour, memo=$memo, pan=$pan, pendingCommands=$pendingCommands, pinStatus=$pinStatus, productId=$productId, spendLimit=$spendLimit, spendLimitDuration=$spendLimitDuration, state=$state, token=$token, type=$type, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -878,8 +810,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Account name identifying the funding source. This may be `null`. */ fun accountName(): Optional = Optional.ofNullable(accountName.getNullable("account_name")) @@ -978,42 +908,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is FundingAccount && - this.accountName == other.accountName && - this.created == other.created && - this.lastFour == other.lastFour && - this.nickname == other.nickname && - this.state == other.state && - this.token == other.token && - this.type == other.type && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountName, - created, - lastFour, - nickname, - state, - token, - type, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "FundingAccount{accountName=$accountName, created=$created, lastFour=$lastFour, nickname=$nickname, state=$state, token=$token, type=$type, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1284,6 +1178,44 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is FundingAccount && + this.accountName == other.accountName && + this.created == other.created && + this.lastFour == other.lastFour && + this.nickname == other.nickname && + this.state == other.state && + this.token == other.token && + this.type == other.type && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountName, + created, + lastFour, + nickname, + state, + token, + type, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "FundingAccount{accountName=$accountName, created=$created, lastFour=$lastFour, nickname=$nickname, state=$state, token=$token, type=$type, additionalProperties=$additionalProperties}" } class PinStatus @@ -1492,4 +1424,72 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Card && + this.accountToken == other.accountToken && + this.authRuleTokens == other.authRuleTokens && + this.cardProgramToken == other.cardProgramToken && + this.cardholderCurrency == other.cardholderCurrency && + this.created == other.created && + this.cvv == other.cvv && + this.digitalCardArtToken == other.digitalCardArtToken && + this.expMonth == other.expMonth && + this.expYear == other.expYear && + this.funding == other.funding && + this.hostname == other.hostname && + this.lastFour == other.lastFour && + this.memo == other.memo && + this.pan == other.pan && + this.pendingCommands == other.pendingCommands && + this.pinStatus == other.pinStatus && + this.productId == other.productId && + this.spendLimit == other.spendLimit && + this.spendLimitDuration == other.spendLimitDuration && + this.state == other.state && + this.token == other.token && + this.type == other.type && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountToken, + authRuleTokens, + cardProgramToken, + cardholderCurrency, + created, + cvv, + digitalCardArtToken, + expMonth, + expYear, + funding, + hostname, + lastFour, + memo, + pan, + pendingCommands, + pinStatus, + productId, + spendLimit, + spendLimitDuration, + state, + token, + type, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Card{accountToken=$accountToken, authRuleTokens=$authRuleTokens, cardProgramToken=$cardProgramToken, cardholderCurrency=$cardholderCurrency, created=$created, cvv=$cvv, digitalCardArtToken=$digitalCardArtToken, expMonth=$expMonth, expYear=$expYear, funding=$funding, hostname=$hostname, lastFour=$lastFour, memo=$memo, pan=$pan, pendingCommands=$pendingCommands, pinStatus=$pinStatus, productId=$productId, spendLimit=$spendLimit, spendLimitDuration=$spendLimitDuration, state=$state, token=$token, type=$type, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardCreateParams.kt index ef60d19a8..360d4d2c5 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardCreateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardCreateParams.kt @@ -123,8 +123,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Card types: * - `VIRTUAL` - Card will authorize at any merchant and can be added to a digital wallet @@ -254,60 +252,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CardCreateBody && - this.type == other.type && - this.accountToken == other.accountToken && - this.cardProgramToken == other.cardProgramToken && - this.carrier == other.carrier && - this.digitalCardArtToken == other.digitalCardArtToken && - this.expMonth == other.expMonth && - this.expYear == other.expYear && - this.memo == other.memo && - this.pin == other.pin && - this.productId == other.productId && - this.replacementFor == other.replacementFor && - this.shippingAddress == other.shippingAddress && - this.shippingMethod == other.shippingMethod && - this.spendLimit == other.spendLimit && - this.spendLimitDuration == other.spendLimitDuration && - this.state == other.state && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - type, - accountToken, - cardProgramToken, - carrier, - digitalCardArtToken, - expMonth, - expYear, - memo, - pin, - productId, - replacementFor, - shippingAddress, - shippingMethod, - spendLimit, - spendLimitDuration, - state, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CardCreateBody{type=$type, accountToken=$accountToken, cardProgramToken=$cardProgramToken, carrier=$carrier, digitalCardArtToken=$digitalCardArtToken, expMonth=$expMonth, expYear=$expYear, memo=$memo, pin=$pin, productId=$productId, replacementFor=$replacementFor, shippingAddress=$shippingAddress, shippingMethod=$shippingMethod, spendLimit=$spendLimit, spendLimitDuration=$spendLimitDuration, state=$state, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -539,6 +483,62 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CardCreateBody && + this.type == other.type && + this.accountToken == other.accountToken && + this.cardProgramToken == other.cardProgramToken && + this.carrier == other.carrier && + this.digitalCardArtToken == other.digitalCardArtToken && + this.expMonth == other.expMonth && + this.expYear == other.expYear && + this.memo == other.memo && + this.pin == other.pin && + this.productId == other.productId && + this.replacementFor == other.replacementFor && + this.shippingAddress == other.shippingAddress && + this.shippingMethod == other.shippingMethod && + this.spendLimit == other.spendLimit && + this.spendLimitDuration == other.spendLimitDuration && + this.state == other.state && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + type, + accountToken, + cardProgramToken, + carrier, + digitalCardArtToken, + expMonth, + expYear, + memo, + pin, + productId, + replacementFor, + shippingAddress, + shippingMethod, + spendLimit, + spendLimitDuration, + state, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CardCreateBody{type=$type, accountToken=$accountToken, cardProgramToken=$cardProgramToken, carrier=$carrier, digitalCardArtToken=$digitalCardArtToken, expMonth=$expMonth, expYear=$expYear, memo=$memo, pin=$pin, productId=$productId, replacementFor=$replacementFor, shippingAddress=$shippingAddress, shippingMethod=$shippingMethod, spendLimit=$spendLimit, spendLimitDuration=$spendLimitDuration, state=$state, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardProgram.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardProgram.kt index 215cf7e05..39cd2c0c3 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardProgram.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardProgram.kt @@ -32,8 +32,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** 3-digit alphabetic ISO 4217 code for the currency of the cardholder. */ fun cardholderCurrency(): Optional = Optional.ofNullable(cardholderCurrency.getNullable("cardholder_currency")) @@ -107,42 +105,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CardProgram && - this.cardholderCurrency == other.cardholderCurrency && - this.created == other.created && - this.name == other.name && - this.panRangeEnd == other.panRangeEnd && - this.panRangeStart == other.panRangeStart && - this.settlementCurrencies == other.settlementCurrencies && - this.token == other.token && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - cardholderCurrency, - created, - name, - panRangeEnd, - panRangeStart, - settlementCurrencies, - token, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CardProgram{cardholderCurrency=$cardholderCurrency, created=$created, name=$name, panRangeEnd=$panRangeEnd, panRangeStart=$panRangeStart, settlementCurrencies=$settlementCurrencies, token=$token, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -267,4 +229,42 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CardProgram && + this.cardholderCurrency == other.cardholderCurrency && + this.created == other.created && + this.name == other.name && + this.panRangeEnd == other.panRangeEnd && + this.panRangeStart == other.panRangeStart && + this.settlementCurrencies == other.settlementCurrencies && + this.token == other.token && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + cardholderCurrency, + created, + name, + panRangeEnd, + panRangeStart, + settlementCurrencies, + token, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CardProgram{cardholderCurrency=$cardholderCurrency, created=$created, name=$name, panRangeEnd=$panRangeEnd, panRangeStart=$panRangeStart, settlementCurrencies=$settlementCurrencies, token=$token, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardProvisionParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardProvisionParams.kt index 889ca81f6..65b602a3c 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardProvisionParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardProvisionParams.kt @@ -83,8 +83,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Only applicable if `digital_wallet` is `APPLE_PAY`. Omit to receive only `activationData` * in the response. Apple's public leaf certificate. Base64 encoded in PEM format with @@ -127,40 +125,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CardProvisionBody && - this.certificate == other.certificate && - this.clientDeviceId == other.clientDeviceId && - this.clientWalletAccountId == other.clientWalletAccountId && - this.digitalWallet == other.digitalWallet && - this.nonce == other.nonce && - this.nonceSignature == other.nonceSignature && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - certificate, - clientDeviceId, - clientWalletAccountId, - digitalWallet, - nonce, - nonceSignature, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CardProvisionBody{certificate=$certificate, clientDeviceId=$clientDeviceId, clientWalletAccountId=$clientWalletAccountId, digitalWallet=$digitalWallet, nonce=$nonce, nonceSignature=$nonceSignature, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -262,6 +226,42 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CardProvisionBody && + this.certificate == other.certificate && + this.clientDeviceId == other.clientDeviceId && + this.clientWalletAccountId == other.clientWalletAccountId && + this.digitalWallet == other.digitalWallet && + this.nonce == other.nonce && + this.nonceSignature == other.nonceSignature && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + certificate, + clientDeviceId, + clientWalletAccountId, + digitalWallet, + nonce, + nonceSignature, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CardProvisionBody{certificate=$certificate, clientDeviceId=$clientDeviceId, clientWalletAccountId=$clientWalletAccountId, digitalWallet=$digitalWallet, nonce=$nonce, nonceSignature=$nonceSignature, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardProvisionResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardProvisionResponse.kt index 5a8c514fe..6304021fd 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardProvisionResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardProvisionResponse.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun provisioningPayload(): Optional = Optional.ofNullable(provisioningPayload.getNullable("provisioning_payload")) @@ -47,26 +45,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CardProvisionResponse && - this.provisioningPayload == other.provisioningPayload && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(provisioningPayload, additionalProperties) - } - return hashCode - } - - override fun toString() = - "CardProvisionResponse{provisioningPayload=$provisioningPayload, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -109,4 +87,26 @@ private constructor( fun build(): CardProvisionResponse = CardProvisionResponse(provisioningPayload, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CardProvisionResponse && + this.provisioningPayload == other.provisioningPayload && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(provisioningPayload, additionalProperties) + } + return hashCode + } + + override fun toString() = + "CardProvisionResponse{provisioningPayload=$provisioningPayload, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardReissueParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardReissueParams.kt index 0c99493ed..61b32c183 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardReissueParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardReissueParams.kt @@ -73,8 +73,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** If omitted, the previous carrier will be used. */ @JsonProperty("carrier") fun carrier(): Carrier? = carrier @@ -107,36 +105,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CardReissueBody && - this.carrier == other.carrier && - this.productId == other.productId && - this.shippingAddress == other.shippingAddress && - this.shippingMethod == other.shippingMethod && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - carrier, - productId, - shippingAddress, - shippingMethod, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CardReissueBody{carrier=$carrier, productId=$productId, shippingAddress=$shippingAddress, shippingMethod=$shippingMethod, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -217,6 +185,38 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CardReissueBody && + this.carrier == other.carrier && + this.productId == other.productId && + this.shippingAddress == other.shippingAddress && + this.shippingMethod == other.shippingMethod && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + carrier, + productId, + shippingAddress, + shippingMethod, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CardReissueBody{carrier=$carrier, productId=$productId, shippingAddress=$shippingAddress, shippingMethod=$shippingMethod, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardRenewParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardRenewParams.kt index d29b3194f..c7d62f4dd 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardRenewParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardRenewParams.kt @@ -83,8 +83,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** The shipping address this card will be sent to. */ @JsonProperty("shipping_address") fun shippingAddress(): ShippingAddress? = shippingAddress @@ -129,40 +127,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CardRenewBody && - this.shippingAddress == other.shippingAddress && - this.carrier == other.carrier && - this.expMonth == other.expMonth && - this.expYear == other.expYear && - this.productId == other.productId && - this.shippingMethod == other.shippingMethod && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - shippingAddress, - carrier, - expMonth, - expYear, - productId, - shippingMethod, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CardRenewBody{shippingAddress=$shippingAddress, carrier=$carrier, expMonth=$expMonth, expYear=$expYear, productId=$productId, shippingMethod=$shippingMethod, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -265,6 +229,42 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CardRenewBody && + this.shippingAddress == other.shippingAddress && + this.carrier == other.carrier && + this.expMonth == other.expMonth && + this.expYear == other.expYear && + this.productId == other.productId && + this.shippingMethod == other.shippingMethod && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + shippingAddress, + carrier, + expMonth, + expYear, + productId, + shippingMethod, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CardRenewBody{shippingAddress=$shippingAddress, carrier=$carrier, expMonth=$expMonth, expYear=$expYear, productId=$productId, shippingMethod=$shippingMethod, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardSearchByPanParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardSearchByPanParams.kt index 685e43a68..51c2c3f1c 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardSearchByPanParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardSearchByPanParams.kt @@ -40,8 +40,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** The PAN for the card being retrieved. */ @JsonProperty("pan") fun pan(): String? = pan @@ -51,26 +49,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CardSearchByPanBody && - this.pan == other.pan && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(pan, additionalProperties) - } - return hashCode - } - - override fun toString() = - "CardSearchByPanBody{pan=$pan, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -110,6 +88,28 @@ constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CardSearchByPanBody && + this.pan == other.pan && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(pan, additionalProperties) + } + return hashCode + } + + override fun toString() = + "CardSearchByPanBody{pan=$pan, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardSpendLimits.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardSpendLimits.kt index 797316615..f6093772e 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardSpendLimits.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardSpendLimits.kt @@ -27,8 +27,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun availableSpendLimit(): AvailableSpendLimit = availableSpendLimit.getRequired("available_spend_limit") @@ -61,34 +59,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CardSpendLimits && - this.availableSpendLimit == other.availableSpendLimit && - this.spendLimit == other.spendLimit && - this.spendVelocity == other.spendVelocity && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - availableSpendLimit, - spendLimit, - spendVelocity, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CardSpendLimits{availableSpendLimit=$availableSpendLimit, spendLimit=$spendLimit, spendVelocity=$spendVelocity, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -167,8 +137,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * The available spend limit (in cents) relative to the annual limit configured on the Card. */ @@ -218,34 +186,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AvailableSpendLimit && - this.annually == other.annually && - this.forever == other.forever && - this.monthly == other.monthly && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - annually, - forever, - monthly, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AvailableSpendLimit{annually=$annually, forever=$forever, monthly=$monthly, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -330,6 +270,36 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AvailableSpendLimit && + this.annually == other.annually && + this.forever == other.forever && + this.monthly == other.monthly && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + annually, + forever, + monthly, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AvailableSpendLimit{annually=$annually, forever=$forever, monthly=$monthly, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = SpendLimit.Builder::class) @@ -344,8 +314,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The configured annual spend limit (in cents) on the Card. */ fun annually(): Optional = Optional.ofNullable(annually.getNullable("annually")) @@ -379,34 +347,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is SpendLimit && - this.annually == other.annually && - this.forever == other.forever && - this.monthly == other.monthly && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - annually, - forever, - monthly, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "SpendLimit{annually=$annually, forever=$forever, monthly=$monthly, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -473,6 +413,36 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is SpendLimit && + this.annually == other.annually && + this.forever == other.forever && + this.monthly == other.monthly && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + annually, + forever, + monthly, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "SpendLimit{annually=$annually, forever=$forever, monthly=$monthly, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = SpendVelocity.Builder::class) @@ -487,8 +457,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Current annual spend velocity (in cents) on the Card. Present if annual spend limit is * set. @@ -540,34 +508,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is SpendVelocity && - this.annually == other.annually && - this.forever == other.forever && - this.monthly == other.monthly && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - annually, - forever, - monthly, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "SpendVelocity{annually=$annually, forever=$forever, monthly=$monthly, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -652,5 +592,65 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is SpendVelocity && + this.annually == other.annually && + this.forever == other.forever && + this.monthly == other.monthly && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + annually, + forever, + monthly, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "SpendVelocity{annually=$annually, forever=$forever, monthly=$monthly, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CardSpendLimits && + this.availableSpendLimit == other.availableSpendLimit && + this.spendLimit == other.spendLimit && + this.spendVelocity == other.spendVelocity && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + availableSpendLimit, + spendLimit, + spendVelocity, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CardSpendLimits{availableSpendLimit=$availableSpendLimit, spendLimit=$spendLimit, spendVelocity=$spendVelocity, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardUpdateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardUpdateParams.kt index 81264712d..4126c7ad1 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardUpdateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardUpdateParams.kt @@ -88,8 +88,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Specifies the digital card art to be displayed in the user’s digital wallet after * tokenization. This artwork must be approved by Mastercard and configured by Lithic to @@ -155,42 +153,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CardUpdateBody && - this.digitalCardArtToken == other.digitalCardArtToken && - this.memo == other.memo && - this.pin == other.pin && - this.pinStatus == other.pinStatus && - this.spendLimit == other.spendLimit && - this.spendLimitDuration == other.spendLimitDuration && - this.state == other.state && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - digitalCardArtToken, - memo, - pin, - pinStatus, - spendLimit, - spendLimitDuration, - state, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CardUpdateBody{digitalCardArtToken=$digitalCardArtToken, memo=$memo, pin=$pin, pinStatus=$pinStatus, spendLimit=$spendLimit, spendLimitDuration=$spendLimitDuration, state=$state, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -313,6 +275,44 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CardUpdateBody && + this.digitalCardArtToken == other.digitalCardArtToken && + this.memo == other.memo && + this.pin == other.pin && + this.pinStatus == other.pinStatus && + this.spendLimit == other.spendLimit && + this.spendLimitDuration == other.spendLimitDuration && + this.state == other.state && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + digitalCardArtToken, + memo, + pin, + pinStatus, + spendLimit, + spendLimitDuration, + state, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CardUpdateBody{digitalCardArtToken=$digitalCardArtToken, memo=$memo, pin=$pin, pinStatus=$pinStatus, spendLimit=$spendLimit, spendLimitDuration=$spendLimitDuration, state=$state, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Carrier.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Carrier.kt index a34c27060..754667a4a 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Carrier.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Carrier.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** QR code url to display on the card carrier */ fun qrCodeUrl(): Optional = Optional.ofNullable(qrCodeUrl.getNullable("qr_code_url")) @@ -46,26 +44,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Carrier && - this.qrCodeUrl == other.qrCodeUrl && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(qrCodeUrl, additionalProperties) - } - return hashCode - } - - override fun toString() = - "Carrier{qrCodeUrl=$qrCodeUrl, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -106,4 +84,26 @@ private constructor( fun build(): Carrier = Carrier(qrCodeUrl, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Carrier && + this.qrCodeUrl == other.qrCodeUrl && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(qrCodeUrl, additionalProperties) + } + return hashCode + } + + override fun toString() = + "Carrier{qrCodeUrl=$qrCodeUrl, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/DecisioningRetrieveSecretResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/DecisioningRetrieveSecretResponse.kt index 575be9795..d8e5290a3 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/DecisioningRetrieveSecretResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/DecisioningRetrieveSecretResponse.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The 3DS Decisioning HMAC secret */ fun secret(): Optional = Optional.ofNullable(secret.getNullable("secret")) @@ -46,26 +44,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is DecisioningRetrieveSecretResponse && - this.secret == other.secret && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(secret, additionalProperties) - } - return hashCode - } - - override fun toString() = - "DecisioningRetrieveSecretResponse{secret=$secret, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -108,4 +86,26 @@ private constructor( fun build(): DecisioningRetrieveSecretResponse = DecisioningRetrieveSecretResponse(secret, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is DecisioningRetrieveSecretResponse && + this.secret == other.secret && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(secret, additionalProperties) + } + return hashCode + } + + override fun toString() = + "DecisioningRetrieveSecretResponse{secret=$secret, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/DigitalCardArt.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/DigitalCardArt.kt index 05d9add86..182ed3b17 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/DigitalCardArt.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/DigitalCardArt.kt @@ -35,8 +35,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Globally unique identifier for the card program. */ fun cardProgramToken(): String = cardProgramToken.getRequired("card_program_token") @@ -101,42 +99,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is DigitalCardArt && - this.cardProgramToken == other.cardProgramToken && - this.created == other.created && - this.description == other.description && - this.isCardProgramDefault == other.isCardProgramDefault && - this.isEnabled == other.isEnabled && - this.network == other.network && - this.token == other.token && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - cardProgramToken, - created, - description, - isCardProgramDefault, - isEnabled, - network, - token, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "DigitalCardArt{cardProgramToken=$cardProgramToken, created=$created, description=$description, isCardProgramDefault=$isCardProgramDefault, isEnabled=$isEnabled, network=$network, token=$token, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -310,4 +272,42 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is DigitalCardArt && + this.cardProgramToken == other.cardProgramToken && + this.created == other.created && + this.description == other.description && + this.isCardProgramDefault == other.isCardProgramDefault && + this.isEnabled == other.isEnabled && + this.network == other.network && + this.token == other.token && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + cardProgramToken, + created, + description, + isCardProgramDefault, + isEnabled, + network, + token, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "DigitalCardArt{cardProgramToken=$cardProgramToken, created=$created, description=$description, isCardProgramDefault=$isCardProgramDefault, isEnabled=$isEnabled, network=$network, token=$token, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Dispute.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Dispute.kt index ee847fd6d..b1ee14454 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Dispute.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Dispute.kt @@ -48,8 +48,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Amount under dispute. May be different from the original transaction amount. */ fun amount(): Long = amount.getRequired("amount") @@ -316,66 +314,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Dispute && - this.amount == other.amount && - this.arbitrationDate == other.arbitrationDate && - this.created == other.created && - this.customerFiledDate == other.customerFiledDate && - this.customerNote == other.customerNote && - this.networkClaimIds == other.networkClaimIds && - this.networkFiledDate == other.networkFiledDate && - this.networkReasonCode == other.networkReasonCode && - this.prearbitrationDate == other.prearbitrationDate && - this.primaryClaimId == other.primaryClaimId && - this.reason == other.reason && - this.representmentDate == other.representmentDate && - this.resolutionAmount == other.resolutionAmount && - this.resolutionDate == other.resolutionDate && - this.resolutionNote == other.resolutionNote && - this.resolutionReason == other.resolutionReason && - this.status == other.status && - this.token == other.token && - this.transactionToken == other.transactionToken && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - arbitrationDate, - created, - customerFiledDate, - customerNote, - networkClaimIds, - networkFiledDate, - networkReasonCode, - prearbitrationDate, - primaryClaimId, - reason, - representmentDate, - resolutionAmount, - resolutionDate, - resolutionNote, - resolutionReason, - status, - token, - transactionToken, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Dispute{amount=$amount, arbitrationDate=$arbitrationDate, created=$created, customerFiledDate=$customerFiledDate, customerNote=$customerNote, networkClaimIds=$networkClaimIds, networkFiledDate=$networkFiledDate, networkReasonCode=$networkReasonCode, prearbitrationDate=$prearbitrationDate, primaryClaimId=$primaryClaimId, reason=$reason, representmentDate=$representmentDate, resolutionAmount=$resolutionAmount, resolutionDate=$resolutionDate, resolutionNote=$resolutionNote, resolutionReason=$resolutionReason, status=$status, token=$token, transactionToken=$transactionToken, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1151,4 +1089,66 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Dispute && + this.amount == other.amount && + this.arbitrationDate == other.arbitrationDate && + this.created == other.created && + this.customerFiledDate == other.customerFiledDate && + this.customerNote == other.customerNote && + this.networkClaimIds == other.networkClaimIds && + this.networkFiledDate == other.networkFiledDate && + this.networkReasonCode == other.networkReasonCode && + this.prearbitrationDate == other.prearbitrationDate && + this.primaryClaimId == other.primaryClaimId && + this.reason == other.reason && + this.representmentDate == other.representmentDate && + this.resolutionAmount == other.resolutionAmount && + this.resolutionDate == other.resolutionDate && + this.resolutionNote == other.resolutionNote && + this.resolutionReason == other.resolutionReason && + this.status == other.status && + this.token == other.token && + this.transactionToken == other.transactionToken && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + arbitrationDate, + created, + customerFiledDate, + customerNote, + networkClaimIds, + networkFiledDate, + networkReasonCode, + prearbitrationDate, + primaryClaimId, + reason, + representmentDate, + resolutionAmount, + resolutionDate, + resolutionNote, + resolutionReason, + status, + token, + transactionToken, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Dispute{amount=$amount, arbitrationDate=$arbitrationDate, created=$created, customerFiledDate=$customerFiledDate, customerNote=$customerNote, networkClaimIds=$networkClaimIds, networkFiledDate=$networkFiledDate, networkReasonCode=$networkReasonCode, prearbitrationDate=$prearbitrationDate, primaryClaimId=$primaryClaimId, reason=$reason, representmentDate=$representmentDate, resolutionAmount=$resolutionAmount, resolutionDate=$resolutionDate, resolutionNote=$resolutionNote, resolutionReason=$resolutionReason, status=$status, token=$token, transactionToken=$transactionToken, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeCreateParams.kt index d1b26e81f..d079ed3eb 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeCreateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeCreateParams.kt @@ -69,8 +69,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Amount to dispute */ @JsonProperty("amount") fun amount(): Long? = amount @@ -93,38 +91,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is DisputeCreateBody && - this.amount == other.amount && - this.reason == other.reason && - this.transactionToken == other.transactionToken && - this.customerFiledDate == other.customerFiledDate && - this.customerNote == other.customerNote && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - reason, - transactionToken, - customerFiledDate, - customerNote, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "DisputeCreateBody{amount=$amount, reason=$reason, transactionToken=$transactionToken, customerFiledDate=$customerFiledDate, customerNote=$customerNote, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -197,6 +163,40 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is DisputeCreateBody && + this.amount == other.amount && + this.reason == other.reason && + this.transactionToken == other.transactionToken && + this.customerFiledDate == other.customerFiledDate && + this.customerNote == other.customerNote && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + reason, + transactionToken, + customerFiledDate, + customerNote, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "DisputeCreateBody{amount=$amount, reason=$reason, transactionToken=$transactionToken, customerFiledDate=$customerFiledDate, customerNote=$customerNote, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeEvidence.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeEvidence.kt index a8c672c25..91a860f5e 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeEvidence.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeEvidence.kt @@ -36,8 +36,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Timestamp of when dispute evidence was created. */ fun created(): OffsetDateTime = created.getRequired("created") @@ -118,42 +116,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is DisputeEvidence && - this.created == other.created && - this.disputeToken == other.disputeToken && - this.downloadUrl == other.downloadUrl && - this.filename == other.filename && - this.token == other.token && - this.uploadStatus == other.uploadStatus && - this.uploadUrl == other.uploadUrl && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - created, - disputeToken, - downloadUrl, - filename, - token, - uploadStatus, - uploadUrl, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "DisputeEvidence{created=$created, disputeToken=$disputeToken, downloadUrl=$downloadUrl, filename=$filename, token=$token, uploadStatus=$uploadStatus, uploadUrl=$uploadUrl, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -363,4 +325,42 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is DisputeEvidence && + this.created == other.created && + this.disputeToken == other.disputeToken && + this.downloadUrl == other.downloadUrl && + this.filename == other.filename && + this.token == other.token && + this.uploadStatus == other.uploadStatus && + this.uploadUrl == other.uploadUrl && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + created, + disputeToken, + downloadUrl, + filename, + token, + uploadStatus, + uploadUrl, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "DisputeEvidence{created=$created, disputeToken=$disputeToken, downloadUrl=$downloadUrl, filename=$filename, token=$token, uploadStatus=$uploadStatus, uploadUrl=$uploadUrl, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeInitiateEvidenceUploadParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeInitiateEvidenceUploadParams.kt index 125b4339d..04fac2900 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeInitiateEvidenceUploadParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeInitiateEvidenceUploadParams.kt @@ -51,8 +51,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Filename of the evidence. */ @JsonProperty("filename") fun filename(): String? = filename @@ -62,26 +60,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is DisputeInitiateEvidenceUploadBody && - this.filename == other.filename && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(filename, additionalProperties) - } - return hashCode - } - - override fun toString() = - "DisputeInitiateEvidenceUploadBody{filename=$filename, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -121,6 +99,28 @@ constructor( fun build(): DisputeInitiateEvidenceUploadBody = DisputeInitiateEvidenceUploadBody(filename, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is DisputeInitiateEvidenceUploadBody && + this.filename == other.filename && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(filename, additionalProperties) + } + return hashCode + } + + override fun toString() = + "DisputeInitiateEvidenceUploadBody{filename=$filename, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeUpdateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeUpdateParams.kt index eac8097dc..c74b22278 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeUpdateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/DisputeUpdateParams.kt @@ -74,8 +74,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Amount to dispute */ @JsonProperty("amount") fun amount(): Long? = amount @@ -95,36 +93,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is DisputeUpdateBody && - this.amount == other.amount && - this.customerFiledDate == other.customerFiledDate && - this.customerNote == other.customerNote && - this.reason == other.reason && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - customerFiledDate, - customerNote, - reason, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "DisputeUpdateBody{amount=$amount, customerFiledDate=$customerFiledDate, customerNote=$customerNote, reason=$reason, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -186,6 +154,38 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is DisputeUpdateBody && + this.amount == other.amount && + this.customerFiledDate == other.customerFiledDate && + this.customerNote == other.customerNote && + this.reason == other.reason && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + customerFiledDate, + customerNote, + reason, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "DisputeUpdateBody{amount=$amount, customerFiledDate=$customerFiledDate, customerNote=$customerNote, reason=$reason, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Document.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Document.kt index 6eb59a0d1..8c9dc2021 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Document.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Document.kt @@ -32,8 +32,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Globally unique identifier for the document. */ fun token(): String = token.getRequired("token") @@ -86,38 +84,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Document && - this.token == other.token && - this.accountHolderToken == other.accountHolderToken && - this.documentType == other.documentType && - this.entityToken == other.entityToken && - this.requiredDocumentUploads == other.requiredDocumentUploads && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - accountHolderToken, - documentType, - entityToken, - requiredDocumentUploads, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Document{token=$token, accountHolderToken=$accountHolderToken, documentType=$documentType, entityToken=$entityToken, requiredDocumentUploads=$requiredDocumentUploads, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -393,8 +359,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Type of image to upload. */ fun imageType(): ImageType = imageType.getRequired("image_type") @@ -454,38 +418,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is RequiredDocumentUpload && - this.imageType == other.imageType && - this.status == other.status && - this.statusReasons == other.statusReasons && - this.uploadUrl == other.uploadUrl && - this.token == other.token && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - imageType, - status, - statusReasons, - uploadUrl, - token, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "RequiredDocumentUpload{imageType=$imageType, status=$status, statusReasons=$statusReasons, uploadUrl=$uploadUrl, token=$token, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -803,5 +735,73 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is RequiredDocumentUpload && + this.imageType == other.imageType && + this.status == other.status && + this.statusReasons == other.statusReasons && + this.uploadUrl == other.uploadUrl && + this.token == other.token && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + imageType, + status, + statusReasons, + uploadUrl, + token, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "RequiredDocumentUpload{imageType=$imageType, status=$status, statusReasons=$statusReasons, uploadUrl=$uploadUrl, token=$token, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Document && + this.token == other.token && + this.accountHolderToken == other.accountHolderToken && + this.documentType == other.documentType && + this.entityToken == other.entityToken && + this.requiredDocumentUploads == other.requiredDocumentUploads && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + accountHolderToken, + documentType, + entityToken, + requiredDocumentUploads, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Document{token=$token, accountHolderToken=$accountHolderToken, documentType=$documentType, entityToken=$entityToken, requiredDocumentUploads=$requiredDocumentUploads, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EnhancedCommercialDataRetrieveResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EnhancedCommercialDataRetrieveResponse.kt index bda3aa290..2453e57b2 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EnhancedCommercialDataRetrieveResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EnhancedCommercialDataRetrieveResponse.kt @@ -24,8 +24,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun data(): List = data.getRequired("data") @JsonProperty("data") @ExcludeMissing fun _data() = data @@ -43,26 +41,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is EnhancedCommercialDataRetrieveResponse && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(data, additionalProperties) - } - return hashCode - } - - override fun toString() = - "EnhancedCommercialDataRetrieveResponse{data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -107,4 +85,26 @@ private constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is EnhancedCommercialDataRetrieveResponse && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(data, additionalProperties) + } + return hashCode + } + + override fun toString() = + "EnhancedCommercialDataRetrieveResponse{data=$data, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EnhancedData.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EnhancedData.kt index 3a7a3888f..9366536ce 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EnhancedData.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EnhancedData.kt @@ -33,8 +33,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** A unique identifier for the enhanced commercial data. */ fun token(): String = token.getRequired("token") @@ -78,38 +76,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is EnhancedData && - this.token == other.token && - this.transactionToken == other.transactionToken && - this.eventToken == other.eventToken && - this.common == other.common && - this.fleet == other.fleet && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - transactionToken, - eventToken, - common, - fleet, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "EnhancedData{token=$token, transactionToken=$transactionToken, eventToken=$eventToken, common=$common, fleet=$fleet, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -212,8 +178,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** A customer identifier. */ fun customerReferenceNumber(): Optional = Optional.ofNullable(customerReferenceNumber.getNullable("customer_reference_number")) @@ -264,38 +228,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CommonData && - this.customerReferenceNumber == other.customerReferenceNumber && - this.merchantReferenceNumber == other.merchantReferenceNumber && - this.orderDate == other.orderDate && - this.tax == other.tax && - this.lineItems == other.lineItems && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - customerReferenceNumber, - merchantReferenceNumber, - orderDate, - tax, - lineItems, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CommonData{customerReferenceNumber=$customerReferenceNumber, merchantReferenceNumber=$merchantReferenceNumber, orderDate=$orderDate, tax=$tax, lineItems=$lineItems, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -403,8 +335,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** An identifier for the item purchased. */ fun productCode(): Optional = Optional.ofNullable(productCode.getNullable("product_code")) @@ -447,36 +377,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is LineItem && - this.productCode == other.productCode && - this.description == other.description && - this.quantity == other.quantity && - this.amount == other.amount && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - productCode, - description, - quantity, - amount, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "LineItem{productCode=$productCode, description=$description, quantity=$quantity, amount=$amount, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -559,6 +459,38 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is LineItem && + this.productCode == other.productCode && + this.description == other.description && + this.quantity == other.quantity && + this.amount == other.amount && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + productCode, + description, + quantity, + amount, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "LineItem{productCode=$productCode, description=$description, quantity=$quantity, amount=$amount, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = TaxData.Builder::class) @@ -573,8 +505,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The amount of tax collected. */ fun amount(): Optional = Optional.ofNullable(amount.getNullable("amount")) @@ -610,34 +540,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TaxData && - this.amount == other.amount && - this.exempt == other.exempt && - this.merchantTaxId == other.merchantTaxId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - exempt, - merchantTaxId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TaxData{amount=$amount, exempt=$exempt, merchantTaxId=$merchantTaxId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -773,7 +675,71 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TaxData && + this.amount == other.amount && + this.exempt == other.exempt && + this.merchantTaxId == other.merchantTaxId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + exempt, + merchantTaxId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TaxData{amount=$amount, exempt=$exempt, merchantTaxId=$merchantTaxId, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CommonData && + this.customerReferenceNumber == other.customerReferenceNumber && + this.merchantReferenceNumber == other.merchantReferenceNumber && + this.orderDate == other.orderDate && + this.tax == other.tax && + this.lineItems == other.lineItems && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + customerReferenceNumber, + merchantReferenceNumber, + orderDate, + tax, + lineItems, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CommonData{customerReferenceNumber=$customerReferenceNumber, merchantReferenceNumber=$merchantReferenceNumber, orderDate=$orderDate, tax=$tax, lineItems=$lineItems, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Fleet.Builder::class) @@ -791,8 +757,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The type of fuel service. */ fun serviceType(): Optional = Optional.ofNullable(serviceType.getNullable("service_type")) @@ -858,40 +822,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Fleet && - this.serviceType == other.serviceType && - this.odometer == other.odometer && - this.vehicleNumber == other.vehicleNumber && - this.driverNumber == other.driverNumber && - this.fuel == other.fuel && - this.amountTotals == other.amountTotals && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - serviceType, - odometer, - vehicleNumber, - driverNumber, - fuel, - amountTotals, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Fleet{serviceType=$serviceType, odometer=$odometer, vehicleNumber=$vehicleNumber, driverNumber=$driverNumber, fuel=$fuel, amountTotals=$amountTotals, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1020,8 +950,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The gross sale amount. */ fun grossSale(): Optional = Optional.ofNullable(grossSale.getNullable("gross_sale")) @@ -1056,34 +984,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AmountTotals && - this.grossSale == other.grossSale && - this.discount == other.discount && - this.netSale == other.netSale && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - grossSale, - discount, - netSale, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AmountTotals{grossSale=$grossSale, discount=$discount, netSale=$netSale, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1151,6 +1051,36 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AmountTotals && + this.grossSale == other.grossSale && + this.discount == other.discount && + this.netSale == other.netSale && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + grossSale, + discount, + netSale, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AmountTotals{grossSale=$grossSale, discount=$discount, netSale=$netSale, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = FuelData.Builder::class) @@ -1166,8 +1096,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The type of fuel purchased. */ fun type(): Optional = Optional.ofNullable(type.getNullable("type")) @@ -1210,36 +1138,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is FuelData && - this.type == other.type && - this.quantity == other.quantity && - this.unitPrice == other.unitPrice && - this.unitOfMeasure == other.unitOfMeasure && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - type, - quantity, - unitPrice, - unitOfMeasure, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "FuelData{type=$type, quantity=$quantity, unitPrice=$unitPrice, unitOfMeasure=$unitOfMeasure, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2388,6 +2286,38 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is FuelData && + this.type == other.type && + this.quantity == other.quantity && + this.unitPrice == other.unitPrice && + this.unitOfMeasure == other.unitOfMeasure && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + type, + quantity, + unitPrice, + unitOfMeasure, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "FuelData{type=$type, quantity=$quantity, unitPrice=$unitPrice, unitOfMeasure=$unitOfMeasure, additionalProperties=$additionalProperties}" } class ServiceType @@ -2464,5 +2394,75 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Fleet && + this.serviceType == other.serviceType && + this.odometer == other.odometer && + this.vehicleNumber == other.vehicleNumber && + this.driverNumber == other.driverNumber && + this.fuel == other.fuel && + this.amountTotals == other.amountTotals && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + serviceType, + odometer, + vehicleNumber, + driverNumber, + fuel, + amountTotals, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Fleet{serviceType=$serviceType, odometer=$odometer, vehicleNumber=$vehicleNumber, driverNumber=$driverNumber, fuel=$fuel, amountTotals=$amountTotals, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is EnhancedData && + this.token == other.token && + this.transactionToken == other.transactionToken && + this.eventToken == other.eventToken && + this.common == other.common && + this.fleet == other.fleet && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + transactionToken, + eventToken, + common, + fleet, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "EnhancedData{token=$token, transactionToken=$transactionToken, eventToken=$eventToken, common=$common, fleet=$fleet, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Event.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Event.kt index c4a83f922..9c9ea34e1 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Event.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Event.kt @@ -32,8 +32,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * An RFC 3339 timestamp for when the event was created. UTC time zone. * @@ -132,36 +130,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Event && - this.created == other.created && - this.eventType == other.eventType && - this.payload == other.payload && - this.token == other.token && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - created, - eventType, - payload, - token, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Event{created=$created, eventType=$eventType, payload=$payload, token=$token, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -645,8 +613,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - @JsonAnyGetter @ExcludeMissing fun _additionalProperties(): Map = additionalProperties @@ -659,23 +625,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Payload && this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(additionalProperties) - } - return hashCode - } - - override fun toString() = "Payload{additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -706,5 +655,56 @@ private constructor( fun build(): Payload = Payload(additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Payload && this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(additionalProperties) + } + return hashCode + } + + override fun toString() = "Payload{additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Event && + this.created == other.created && + this.eventType == other.eventType && + this.payload == other.payload && + this.token == other.token && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + created, + eventType, + payload, + token, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Event{created=$created, eventType=$eventType, payload=$payload, token=$token, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscription.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscription.kt index eebb59a6b..acdc4aa5a 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscription.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscription.kt @@ -33,8 +33,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** A description of the subscription. */ fun description(): String = description.getRequired("description") @@ -79,38 +77,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is EventSubscription && - this.description == other.description && - this.disabled == other.disabled && - this.eventTypes == other.eventTypes && - this.token == other.token && - this.url == other.url && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - description, - disabled, - eventTypes, - token, - url, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "EventSubscription{description=$description, disabled=$disabled, eventTypes=$eventTypes, token=$token, url=$url, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -533,4 +499,38 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is EventSubscription && + this.description == other.description && + this.disabled == other.disabled && + this.eventTypes == other.eventTypes && + this.token == other.token && + this.url == other.url && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + description, + disabled, + eventTypes, + token, + url, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "EventSubscription{description=$description, disabled=$disabled, eventTypes=$eventTypes, token=$token, url=$url, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionCreateParams.kt index 21eed2fdb..ea986399d 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionCreateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionCreateParams.kt @@ -63,8 +63,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** URL to which event webhooks will be sent. URL must be a valid HTTPS address. */ @JsonProperty("url") fun url(): String? = url @@ -86,36 +84,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is EventSubscriptionCreateBody && - this.url == other.url && - this.description == other.description && - this.disabled == other.disabled && - this.eventTypes == other.eventTypes && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - url, - description, - disabled, - eventTypes, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "EventSubscriptionCreateBody{url=$url, description=$description, disabled=$disabled, eventTypes=$eventTypes, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -179,6 +147,38 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is EventSubscriptionCreateBody && + this.url == other.url && + this.description == other.description && + this.disabled == other.disabled && + this.eventTypes == other.eventTypes && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + url, + description, + disabled, + eventTypes, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "EventSubscriptionCreateBody{url=$url, description=$description, disabled=$disabled, eventTypes=$eventTypes, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionSendSimulatedExampleParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionSendSimulatedExampleParams.kt index 82c6aa416..8c784b4e6 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionSendSimulatedExampleParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionSendSimulatedExampleParams.kt @@ -55,8 +55,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Event type to send example message for. */ @JsonProperty("event_type") fun eventType(): EventType? = eventType @@ -66,26 +64,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is EventSubscriptionSendSimulatedExampleBody && - this.eventType == other.eventType && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(eventType, additionalProperties) - } - return hashCode - } - - override fun toString() = - "EventSubscriptionSendSimulatedExampleBody{eventType=$eventType, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -128,6 +106,28 @@ constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is EventSubscriptionSendSimulatedExampleBody && + this.eventType == other.eventType && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(eventType, additionalProperties) + } + return hashCode + } + + override fun toString() = + "EventSubscriptionSendSimulatedExampleBody{eventType=$eventType, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionUpdateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionUpdateParams.kt index 97245659f..e1acefccd 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionUpdateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionUpdateParams.kt @@ -73,8 +73,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** URL to which event webhooks will be sent. URL must be a valid HTTPS address. */ @JsonProperty("url") fun url(): String? = url @@ -96,36 +94,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is EventSubscriptionUpdateBody && - this.url == other.url && - this.description == other.description && - this.disabled == other.disabled && - this.eventTypes == other.eventTypes && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - url, - description, - disabled, - eventTypes, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "EventSubscriptionUpdateBody{url=$url, description=$description, disabled=$disabled, eventTypes=$eventTypes, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -189,6 +157,38 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is EventSubscriptionUpdateBody && + this.url == other.url && + this.description == other.description && + this.disabled == other.disabled && + this.eventTypes == other.eventTypes && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + url, + description, + disabled, + eventTypes, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "EventSubscriptionUpdateBody{url=$url, description=$description, disabled=$disabled, eventTypes=$eventTypes, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExtendedCredit.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExtendedCredit.kt index c273c5285..dc8f1c803 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExtendedCredit.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExtendedCredit.kt @@ -24,8 +24,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun creditExtended(): Long = creditExtended.getRequired("credit_extended") @JsonProperty("credit_extended") @ExcludeMissing fun _creditExtended() = creditExtended @@ -43,26 +41,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExtendedCredit && - this.creditExtended == other.creditExtended && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(creditExtended, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ExtendedCredit{creditExtended=$creditExtended, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -104,4 +82,26 @@ private constructor( fun build(): ExtendedCredit = ExtendedCredit(creditExtended, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExtendedCredit && + this.creditExtended == other.creditExtended && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(creditExtended, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ExtendedCredit{creditExtended=$creditExtended, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountAddress.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountAddress.kt index a44b7bb28..6c4688986 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountAddress.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountAddress.kt @@ -30,8 +30,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun address1(): String = address1.getRequired("address1") fun address2(): Optional = Optional.ofNullable(address2.getNullable("address2")) @@ -74,40 +72,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalBankAccountAddress && - this.address1 == other.address1 && - this.address2 == other.address2 && - this.city == other.city && - this.state == other.state && - this.postalCode == other.postalCode && - this.country == other.country && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address1, - address2, - city, - state, - postalCode, - country, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternalBankAccountAddress{address1=$address1, address2=$address2, city=$city, state=$state, postalCode=$postalCode, country=$country, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -195,4 +159,40 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalBankAccountAddress && + this.address1 == other.address1 && + this.address2 == other.address2 && + this.city == other.city && + this.state == other.state && + this.postalCode == other.postalCode && + this.country == other.country && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address1, + address2, + city, + state, + postalCode, + country, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternalBankAccountAddress{address1=$address1, address2=$address2, city=$city, state=$state, postalCode=$postalCode, country=$country, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountCreateParams.kt index dd0e55de1..ebbaddc7c 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountCreateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountCreateParams.kt @@ -431,8 +431,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Verification Method */ @JsonProperty("verification_method") fun verificationMethod(): VerificationMethod? = verificationMethod @@ -501,62 +499,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is BankVerifiedCreateBankAccountApiRequest && - this.verificationMethod == other.verificationMethod && - this.ownerType == other.ownerType && - this.owner == other.owner && - this.accountToken == other.accountToken && - this.companyId == other.companyId && - this.doingBusinessAs == other.doingBusinessAs && - this.dob == other.dob && - this.userDefinedId == other.userDefinedId && - this.type == other.type && - this.routingNumber == other.routingNumber && - this.accountNumber == other.accountNumber && - this.name == other.name && - this.country == other.country && - this.currency == other.currency && - this.verificationEnforcement == other.verificationEnforcement && - this.address == other.address && - this.financialAccountToken == other.financialAccountToken && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - verificationMethod, - ownerType, - owner, - accountToken, - companyId, - doingBusinessAs, - dob, - userDefinedId, - type, - routingNumber, - accountNumber, - name, - country, - currency, - verificationEnforcement, - address, - financialAccountToken, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "BankVerifiedCreateBankAccountApiRequest{verificationMethod=$verificationMethod, ownerType=$ownerType, owner=$owner, accountToken=$accountToken, companyId=$companyId, doingBusinessAs=$doingBusinessAs, dob=$dob, userDefinedId=$userDefinedId, type=$type, routingNumber=$routingNumber, accountNumber=$accountNumber, name=$name, country=$country, currency=$currency, verificationEnforcement=$verificationEnforcement, address=$address, financialAccountToken=$financialAccountToken, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -786,6 +728,64 @@ constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is BankVerifiedCreateBankAccountApiRequest && + this.verificationMethod == other.verificationMethod && + this.ownerType == other.ownerType && + this.owner == other.owner && + this.accountToken == other.accountToken && + this.companyId == other.companyId && + this.doingBusinessAs == other.doingBusinessAs && + this.dob == other.dob && + this.userDefinedId == other.userDefinedId && + this.type == other.type && + this.routingNumber == other.routingNumber && + this.accountNumber == other.accountNumber && + this.name == other.name && + this.country == other.country && + this.currency == other.currency && + this.verificationEnforcement == other.verificationEnforcement && + this.address == other.address && + this.financialAccountToken == other.financialAccountToken && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + verificationMethod, + ownerType, + owner, + accountToken, + companyId, + doingBusinessAs, + dob, + userDefinedId, + type, + routingNumber, + accountNumber, + name, + country, + currency, + verificationEnforcement, + address, + financialAccountToken, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "BankVerifiedCreateBankAccountApiRequest{verificationMethod=$verificationMethod, ownerType=$ownerType, owner=$owner, accountToken=$accountToken, companyId=$companyId, doingBusinessAs=$doingBusinessAs, dob=$dob, userDefinedId=$userDefinedId, type=$type, routingNumber=$routingNumber, accountNumber=$accountNumber, name=$name, country=$country, currency=$currency, verificationEnforcement=$verificationEnforcement, address=$address, financialAccountToken=$financialAccountToken, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = PlaidCreateBankAccountApiRequest.Builder::class) @@ -804,8 +804,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Verification Method */ @JsonProperty("verification_method") fun verificationMethod(): VerificationMethod? = verificationMethod @@ -845,46 +843,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PlaidCreateBankAccountApiRequest && - this.verificationMethod == other.verificationMethod && - this.ownerType == other.ownerType && - this.owner == other.owner && - this.accountToken == other.accountToken && - this.companyId == other.companyId && - this.doingBusinessAs == other.doingBusinessAs && - this.dob == other.dob && - this.userDefinedId == other.userDefinedId && - this.processorToken == other.processorToken && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - verificationMethod, - ownerType, - owner, - accountToken, - companyId, - doingBusinessAs, - dob, - userDefinedId, - processorToken, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "PlaidCreateBankAccountApiRequest{verificationMethod=$verificationMethod, ownerType=$ownerType, owner=$owner, accountToken=$accountToken, companyId=$companyId, doingBusinessAs=$doingBusinessAs, dob=$dob, userDefinedId=$userDefinedId, processorToken=$processorToken, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -994,6 +952,48 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PlaidCreateBankAccountApiRequest && + this.verificationMethod == other.verificationMethod && + this.ownerType == other.ownerType && + this.owner == other.owner && + this.accountToken == other.accountToken && + this.companyId == other.companyId && + this.doingBusinessAs == other.doingBusinessAs && + this.dob == other.dob && + this.userDefinedId == other.userDefinedId && + this.processorToken == other.processorToken && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + verificationMethod, + ownerType, + owner, + accountToken, + companyId, + doingBusinessAs, + dob, + userDefinedId, + processorToken, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "PlaidCreateBankAccountApiRequest{verificationMethod=$verificationMethod, ownerType=$ownerType, owner=$owner, accountToken=$accountToken, companyId=$companyId, doingBusinessAs=$doingBusinessAs, dob=$dob, userDefinedId=$userDefinedId, processorToken=$processorToken, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = ExternallyVerifiedCreateBankAccountApiRequest.Builder::class) @@ -1018,8 +1018,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Verification Method */ @JsonProperty("verification_method") fun verificationMethod(): ExternallyVerifiedVerificationMethod? = verificationMethod @@ -1081,58 +1079,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternallyVerifiedCreateBankAccountApiRequest && - this.verificationMethod == other.verificationMethod && - this.ownerType == other.ownerType && - this.owner == other.owner && - this.accountToken == other.accountToken && - this.companyId == other.companyId && - this.doingBusinessAs == other.doingBusinessAs && - this.dob == other.dob && - this.userDefinedId == other.userDefinedId && - this.type == other.type && - this.routingNumber == other.routingNumber && - this.accountNumber == other.accountNumber && - this.name == other.name && - this.country == other.country && - this.currency == other.currency && - this.address == other.address && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - verificationMethod, - ownerType, - owner, - accountToken, - companyId, - doingBusinessAs, - dob, - userDefinedId, - type, - routingNumber, - accountNumber, - name, - country, - currency, - address, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternallyVerifiedCreateBankAccountApiRequest{verificationMethod=$verificationMethod, ownerType=$ownerType, owner=$owner, accountToken=$accountToken, companyId=$companyId, doingBusinessAs=$doingBusinessAs, dob=$dob, userDefinedId=$userDefinedId, type=$type, routingNumber=$routingNumber, accountNumber=$accountNumber, name=$name, country=$country, currency=$currency, address=$address, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1403,5 +1349,59 @@ constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternallyVerifiedCreateBankAccountApiRequest && + this.verificationMethod == other.verificationMethod && + this.ownerType == other.ownerType && + this.owner == other.owner && + this.accountToken == other.accountToken && + this.companyId == other.companyId && + this.doingBusinessAs == other.doingBusinessAs && + this.dob == other.dob && + this.userDefinedId == other.userDefinedId && + this.type == other.type && + this.routingNumber == other.routingNumber && + this.accountNumber == other.accountNumber && + this.name == other.name && + this.country == other.country && + this.currency == other.currency && + this.address == other.address && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + verificationMethod, + ownerType, + owner, + accountToken, + companyId, + doingBusinessAs, + dob, + userDefinedId, + type, + routingNumber, + accountNumber, + name, + country, + currency, + address, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternallyVerifiedCreateBankAccountApiRequest{verificationMethod=$verificationMethod, ownerType=$ownerType, owner=$owner, accountToken=$accountToken, companyId=$companyId, doingBusinessAs=$doingBusinessAs, dob=$dob, userDefinedId=$userDefinedId, type=$type, routingNumber=$routingNumber, accountNumber=$accountNumber, name=$name, country=$country, currency=$currency, address=$address, additionalProperties=$additionalProperties}" } } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountCreateResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountCreateResponse.kt index f23649e87..fa167167c 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountCreateResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountCreateResponse.kt @@ -51,8 +51,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * A globally unique identifier for this record of an external bank account association. If a * program links an external bank account to more than one end-user or to both the program and @@ -268,72 +266,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalBankAccountCreateResponse && - this.token == other.token && - this.owner == other.owner && - this.routingNumber == other.routingNumber && - this.lastFour == other.lastFour && - this.name == other.name && - this.currency == other.currency && - this.country == other.country && - this.accountToken == other.accountToken && - this.created == other.created && - this.companyId == other.companyId && - this.dob == other.dob && - this.doingBusinessAs == other.doingBusinessAs && - this.userDefinedId == other.userDefinedId && - this.verificationFailedReason == other.verificationFailedReason && - this.verificationAttempts == other.verificationAttempts && - this.financialAccountToken == other.financialAccountToken && - this.type == other.type && - this.verificationMethod == other.verificationMethod && - this.ownerType == other.ownerType && - this.state == other.state && - this.verificationState == other.verificationState && - this.address == other.address && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - owner, - routingNumber, - lastFour, - name, - currency, - country, - accountToken, - created, - companyId, - dob, - doingBusinessAs, - userDefinedId, - verificationFailedReason, - verificationAttempts, - financialAccountToken, - type, - verificationMethod, - ownerType, - state, - verificationState, - address, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternalBankAccountCreateResponse{token=$token, owner=$owner, routingNumber=$routingNumber, lastFour=$lastFour, name=$name, currency=$currency, country=$country, accountToken=$accountToken, created=$created, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationAttempts=$verificationAttempts, financialAccountToken=$financialAccountToken, type=$type, verificationMethod=$verificationMethod, ownerType=$ownerType, state=$state, verificationState=$verificationState, address=$address, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -995,4 +927,72 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalBankAccountCreateResponse && + this.token == other.token && + this.owner == other.owner && + this.routingNumber == other.routingNumber && + this.lastFour == other.lastFour && + this.name == other.name && + this.currency == other.currency && + this.country == other.country && + this.accountToken == other.accountToken && + this.created == other.created && + this.companyId == other.companyId && + this.dob == other.dob && + this.doingBusinessAs == other.doingBusinessAs && + this.userDefinedId == other.userDefinedId && + this.verificationFailedReason == other.verificationFailedReason && + this.verificationAttempts == other.verificationAttempts && + this.financialAccountToken == other.financialAccountToken && + this.type == other.type && + this.verificationMethod == other.verificationMethod && + this.ownerType == other.ownerType && + this.state == other.state && + this.verificationState == other.verificationState && + this.address == other.address && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + owner, + routingNumber, + lastFour, + name, + currency, + country, + accountToken, + created, + companyId, + dob, + doingBusinessAs, + userDefinedId, + verificationFailedReason, + verificationAttempts, + financialAccountToken, + type, + verificationMethod, + ownerType, + state, + verificationState, + address, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternalBankAccountCreateResponse{token=$token, owner=$owner, routingNumber=$routingNumber, lastFour=$lastFour, name=$name, currency=$currency, country=$country, accountToken=$accountToken, created=$created, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationAttempts=$verificationAttempts, financialAccountToken=$financialAccountToken, type=$type, verificationMethod=$verificationMethod, ownerType=$ownerType, state=$state, verificationState=$verificationState, address=$address, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountListResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountListResponse.kt index a18a67dba..ed069187a 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountListResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountListResponse.kt @@ -51,8 +51,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * A globally unique identifier for this record of an external bank account association. If a * program links an external bank account to more than one end-user or to both the program and @@ -268,72 +266,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalBankAccountListResponse && - this.token == other.token && - this.owner == other.owner && - this.routingNumber == other.routingNumber && - this.lastFour == other.lastFour && - this.name == other.name && - this.currency == other.currency && - this.country == other.country && - this.accountToken == other.accountToken && - this.created == other.created && - this.companyId == other.companyId && - this.dob == other.dob && - this.doingBusinessAs == other.doingBusinessAs && - this.userDefinedId == other.userDefinedId && - this.verificationFailedReason == other.verificationFailedReason && - this.verificationAttempts == other.verificationAttempts && - this.financialAccountToken == other.financialAccountToken && - this.type == other.type && - this.verificationMethod == other.verificationMethod && - this.ownerType == other.ownerType && - this.state == other.state && - this.verificationState == other.verificationState && - this.address == other.address && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - owner, - routingNumber, - lastFour, - name, - currency, - country, - accountToken, - created, - companyId, - dob, - doingBusinessAs, - userDefinedId, - verificationFailedReason, - verificationAttempts, - financialAccountToken, - type, - verificationMethod, - ownerType, - state, - verificationState, - address, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternalBankAccountListResponse{token=$token, owner=$owner, routingNumber=$routingNumber, lastFour=$lastFour, name=$name, currency=$currency, country=$country, accountToken=$accountToken, created=$created, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationAttempts=$verificationAttempts, financialAccountToken=$financialAccountToken, type=$type, verificationMethod=$verificationMethod, ownerType=$ownerType, state=$state, verificationState=$verificationState, address=$address, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -995,4 +927,72 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalBankAccountListResponse && + this.token == other.token && + this.owner == other.owner && + this.routingNumber == other.routingNumber && + this.lastFour == other.lastFour && + this.name == other.name && + this.currency == other.currency && + this.country == other.country && + this.accountToken == other.accountToken && + this.created == other.created && + this.companyId == other.companyId && + this.dob == other.dob && + this.doingBusinessAs == other.doingBusinessAs && + this.userDefinedId == other.userDefinedId && + this.verificationFailedReason == other.verificationFailedReason && + this.verificationAttempts == other.verificationAttempts && + this.financialAccountToken == other.financialAccountToken && + this.type == other.type && + this.verificationMethod == other.verificationMethod && + this.ownerType == other.ownerType && + this.state == other.state && + this.verificationState == other.verificationState && + this.address == other.address && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + owner, + routingNumber, + lastFour, + name, + currency, + country, + accountToken, + created, + companyId, + dob, + doingBusinessAs, + userDefinedId, + verificationFailedReason, + verificationAttempts, + financialAccountToken, + type, + verificationMethod, + ownerType, + state, + verificationState, + address, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternalBankAccountListResponse{token=$token, owner=$owner, routingNumber=$routingNumber, lastFour=$lastFour, name=$name, currency=$currency, country=$country, accountToken=$accountToken, created=$created, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationAttempts=$verificationAttempts, financialAccountToken=$financialAccountToken, type=$type, verificationMethod=$verificationMethod, ownerType=$ownerType, state=$state, verificationState=$verificationState, address=$address, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountMicroDepositCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountMicroDepositCreateParams.kt index 48b3ac895..65d015299 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountMicroDepositCreateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountMicroDepositCreateParams.kt @@ -50,8 +50,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("micro_deposits") fun microDeposits(): List? = microDeposits @JsonAnyGetter @@ -60,26 +58,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalBankAccountMicroDepositCreateBody && - this.microDeposits == other.microDeposits && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(microDeposits, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ExternalBankAccountMicroDepositCreateBody{microDeposits=$microDeposits, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -124,6 +102,28 @@ constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalBankAccountMicroDepositCreateBody && + this.microDeposits == other.microDeposits && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(microDeposits, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ExternalBankAccountMicroDepositCreateBody{microDeposits=$microDeposits, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetrieveResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetrieveResponse.kt index 98e9ca9dc..f24f97f71 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetrieveResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetrieveResponse.kt @@ -51,8 +51,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * A globally unique identifier for this record of an external bank account association. If a * program links an external bank account to more than one end-user or to both the program and @@ -268,72 +266,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalBankAccountRetrieveResponse && - this.token == other.token && - this.owner == other.owner && - this.routingNumber == other.routingNumber && - this.lastFour == other.lastFour && - this.name == other.name && - this.currency == other.currency && - this.country == other.country && - this.accountToken == other.accountToken && - this.created == other.created && - this.companyId == other.companyId && - this.dob == other.dob && - this.doingBusinessAs == other.doingBusinessAs && - this.userDefinedId == other.userDefinedId && - this.verificationFailedReason == other.verificationFailedReason && - this.verificationAttempts == other.verificationAttempts && - this.financialAccountToken == other.financialAccountToken && - this.type == other.type && - this.verificationMethod == other.verificationMethod && - this.ownerType == other.ownerType && - this.state == other.state && - this.verificationState == other.verificationState && - this.address == other.address && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - owner, - routingNumber, - lastFour, - name, - currency, - country, - accountToken, - created, - companyId, - dob, - doingBusinessAs, - userDefinedId, - verificationFailedReason, - verificationAttempts, - financialAccountToken, - type, - verificationMethod, - ownerType, - state, - verificationState, - address, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternalBankAccountRetrieveResponse{token=$token, owner=$owner, routingNumber=$routingNumber, lastFour=$lastFour, name=$name, currency=$currency, country=$country, accountToken=$accountToken, created=$created, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationAttempts=$verificationAttempts, financialAccountToken=$financialAccountToken, type=$type, verificationMethod=$verificationMethod, ownerType=$ownerType, state=$state, verificationState=$verificationState, address=$address, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -996,4 +928,72 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalBankAccountRetrieveResponse && + this.token == other.token && + this.owner == other.owner && + this.routingNumber == other.routingNumber && + this.lastFour == other.lastFour && + this.name == other.name && + this.currency == other.currency && + this.country == other.country && + this.accountToken == other.accountToken && + this.created == other.created && + this.companyId == other.companyId && + this.dob == other.dob && + this.doingBusinessAs == other.doingBusinessAs && + this.userDefinedId == other.userDefinedId && + this.verificationFailedReason == other.verificationFailedReason && + this.verificationAttempts == other.verificationAttempts && + this.financialAccountToken == other.financialAccountToken && + this.type == other.type && + this.verificationMethod == other.verificationMethod && + this.ownerType == other.ownerType && + this.state == other.state && + this.verificationState == other.verificationState && + this.address == other.address && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + owner, + routingNumber, + lastFour, + name, + currency, + country, + accountToken, + created, + companyId, + dob, + doingBusinessAs, + userDefinedId, + verificationFailedReason, + verificationAttempts, + financialAccountToken, + type, + verificationMethod, + ownerType, + state, + verificationState, + address, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternalBankAccountRetrieveResponse{token=$token, owner=$owner, routingNumber=$routingNumber, lastFour=$lastFour, name=$name, currency=$currency, country=$country, accountToken=$accountToken, created=$created, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationAttempts=$verificationAttempts, financialAccountToken=$financialAccountToken, type=$type, verificationMethod=$verificationMethod, ownerType=$ownerType, state=$state, verificationState=$verificationState, address=$address, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryMicroDepositsParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryMicroDepositsParams.kt index 510b9d9a8..46f8354d2 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryMicroDepositsParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryMicroDepositsParams.kt @@ -54,8 +54,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("financial_account_token") fun financialAccountToken(): String? = financialAccountToken @@ -65,26 +63,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalBankAccountRetryMicroDepositsBody && - this.financialAccountToken == other.financialAccountToken && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(financialAccountToken, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ExternalBankAccountRetryMicroDepositsBody{financialAccountToken=$financialAccountToken, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -129,6 +107,28 @@ constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalBankAccountRetryMicroDepositsBody && + this.financialAccountToken == other.financialAccountToken && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(financialAccountToken, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ExternalBankAccountRetryMicroDepositsBody{financialAccountToken=$financialAccountToken, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryMicroDepositsResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryMicroDepositsResponse.kt index 89cf738f2..c6864859a 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryMicroDepositsResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryMicroDepositsResponse.kt @@ -51,8 +51,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * A globally unique identifier for this record of an external bank account association. If a * program links an external bank account to more than one end-user or to both the program and @@ -268,72 +266,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalBankAccountRetryMicroDepositsResponse && - this.token == other.token && - this.owner == other.owner && - this.routingNumber == other.routingNumber && - this.lastFour == other.lastFour && - this.name == other.name && - this.currency == other.currency && - this.country == other.country && - this.accountToken == other.accountToken && - this.created == other.created && - this.companyId == other.companyId && - this.dob == other.dob && - this.doingBusinessAs == other.doingBusinessAs && - this.userDefinedId == other.userDefinedId && - this.verificationFailedReason == other.verificationFailedReason && - this.verificationAttempts == other.verificationAttempts && - this.financialAccountToken == other.financialAccountToken && - this.type == other.type && - this.verificationMethod == other.verificationMethod && - this.ownerType == other.ownerType && - this.state == other.state && - this.verificationState == other.verificationState && - this.address == other.address && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - owner, - routingNumber, - lastFour, - name, - currency, - country, - accountToken, - created, - companyId, - dob, - doingBusinessAs, - userDefinedId, - verificationFailedReason, - verificationAttempts, - financialAccountToken, - type, - verificationMethod, - ownerType, - state, - verificationState, - address, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternalBankAccountRetryMicroDepositsResponse{token=$token, owner=$owner, routingNumber=$routingNumber, lastFour=$lastFour, name=$name, currency=$currency, country=$country, accountToken=$accountToken, created=$created, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationAttempts=$verificationAttempts, financialAccountToken=$financialAccountToken, type=$type, verificationMethod=$verificationMethod, ownerType=$ownerType, state=$state, verificationState=$verificationState, address=$address, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1000,4 +932,72 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalBankAccountRetryMicroDepositsResponse && + this.token == other.token && + this.owner == other.owner && + this.routingNumber == other.routingNumber && + this.lastFour == other.lastFour && + this.name == other.name && + this.currency == other.currency && + this.country == other.country && + this.accountToken == other.accountToken && + this.created == other.created && + this.companyId == other.companyId && + this.dob == other.dob && + this.doingBusinessAs == other.doingBusinessAs && + this.userDefinedId == other.userDefinedId && + this.verificationFailedReason == other.verificationFailedReason && + this.verificationAttempts == other.verificationAttempts && + this.financialAccountToken == other.financialAccountToken && + this.type == other.type && + this.verificationMethod == other.verificationMethod && + this.ownerType == other.ownerType && + this.state == other.state && + this.verificationState == other.verificationState && + this.address == other.address && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + owner, + routingNumber, + lastFour, + name, + currency, + country, + accountToken, + created, + companyId, + dob, + doingBusinessAs, + userDefinedId, + verificationFailedReason, + verificationAttempts, + financialAccountToken, + type, + verificationMethod, + ownerType, + state, + verificationState, + address, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternalBankAccountRetryMicroDepositsResponse{token=$token, owner=$owner, routingNumber=$routingNumber, lastFour=$lastFour, name=$name, currency=$currency, country=$country, accountToken=$accountToken, created=$created, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationAttempts=$verificationAttempts, financialAccountToken=$financialAccountToken, type=$type, verificationMethod=$verificationMethod, ownerType=$ownerType, state=$state, verificationState=$verificationState, address=$address, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryPrenoteParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryPrenoteParams.kt index 75e31808e..d2227ae2b 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryPrenoteParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryPrenoteParams.kt @@ -51,8 +51,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("financial_account_token") fun financialAccountToken(): String? = financialAccountToken @@ -62,26 +60,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalBankAccountRetryPrenoteBody && - this.financialAccountToken == other.financialAccountToken && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(financialAccountToken, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ExternalBankAccountRetryPrenoteBody{financialAccountToken=$financialAccountToken, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -126,6 +104,28 @@ constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalBankAccountRetryPrenoteBody && + this.financialAccountToken == other.financialAccountToken && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(financialAccountToken, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ExternalBankAccountRetryPrenoteBody{financialAccountToken=$financialAccountToken, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryPrenoteResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryPrenoteResponse.kt index 039225006..7690fc30d 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryPrenoteResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountRetryPrenoteResponse.kt @@ -51,8 +51,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * A globally unique identifier for this record of an external bank account association. If a * program links an external bank account to more than one end-user or to both the program and @@ -268,72 +266,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalBankAccountRetryPrenoteResponse && - this.token == other.token && - this.owner == other.owner && - this.routingNumber == other.routingNumber && - this.lastFour == other.lastFour && - this.name == other.name && - this.currency == other.currency && - this.country == other.country && - this.accountToken == other.accountToken && - this.created == other.created && - this.companyId == other.companyId && - this.dob == other.dob && - this.doingBusinessAs == other.doingBusinessAs && - this.userDefinedId == other.userDefinedId && - this.verificationFailedReason == other.verificationFailedReason && - this.verificationAttempts == other.verificationAttempts && - this.financialAccountToken == other.financialAccountToken && - this.type == other.type && - this.verificationMethod == other.verificationMethod && - this.ownerType == other.ownerType && - this.state == other.state && - this.verificationState == other.verificationState && - this.address == other.address && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - owner, - routingNumber, - lastFour, - name, - currency, - country, - accountToken, - created, - companyId, - dob, - doingBusinessAs, - userDefinedId, - verificationFailedReason, - verificationAttempts, - financialAccountToken, - type, - verificationMethod, - ownerType, - state, - verificationState, - address, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternalBankAccountRetryPrenoteResponse{token=$token, owner=$owner, routingNumber=$routingNumber, lastFour=$lastFour, name=$name, currency=$currency, country=$country, accountToken=$accountToken, created=$created, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationAttempts=$verificationAttempts, financialAccountToken=$financialAccountToken, type=$type, verificationMethod=$verificationMethod, ownerType=$ownerType, state=$state, verificationState=$verificationState, address=$address, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -871,4 +803,72 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalBankAccountRetryPrenoteResponse && + this.token == other.token && + this.owner == other.owner && + this.routingNumber == other.routingNumber && + this.lastFour == other.lastFour && + this.name == other.name && + this.currency == other.currency && + this.country == other.country && + this.accountToken == other.accountToken && + this.created == other.created && + this.companyId == other.companyId && + this.dob == other.dob && + this.doingBusinessAs == other.doingBusinessAs && + this.userDefinedId == other.userDefinedId && + this.verificationFailedReason == other.verificationFailedReason && + this.verificationAttempts == other.verificationAttempts && + this.financialAccountToken == other.financialAccountToken && + this.type == other.type && + this.verificationMethod == other.verificationMethod && + this.ownerType == other.ownerType && + this.state == other.state && + this.verificationState == other.verificationState && + this.address == other.address && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + owner, + routingNumber, + lastFour, + name, + currency, + country, + accountToken, + created, + companyId, + dob, + doingBusinessAs, + userDefinedId, + verificationFailedReason, + verificationAttempts, + financialAccountToken, + type, + verificationMethod, + ownerType, + state, + verificationState, + address, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternalBankAccountRetryPrenoteResponse{token=$token, owner=$owner, routingNumber=$routingNumber, lastFour=$lastFour, name=$name, currency=$currency, country=$country, accountToken=$accountToken, created=$created, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationAttempts=$verificationAttempts, financialAccountToken=$financialAccountToken, type=$type, verificationMethod=$verificationMethod, ownerType=$ownerType, state=$state, verificationState=$verificationState, address=$address, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountUpdateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountUpdateParams.kt index 242712ba5..0ed84b213 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountUpdateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountUpdateParams.kt @@ -90,8 +90,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Address */ @JsonProperty("address") fun address(): ExternalBankAccountAddress? = address @@ -125,44 +123,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalBankAccountUpdateBody && - this.address == other.address && - this.companyId == other.companyId && - this.dob == other.dob && - this.doingBusinessAs == other.doingBusinessAs && - this.name == other.name && - this.owner == other.owner && - this.ownerType == other.ownerType && - this.userDefinedId == other.userDefinedId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address, - companyId, - dob, - doingBusinessAs, - name, - owner, - ownerType, - userDefinedId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternalBankAccountUpdateBody{address=$address, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, name=$name, owner=$owner, ownerType=$ownerType, userDefinedId=$userDefinedId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -255,6 +215,46 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalBankAccountUpdateBody && + this.address == other.address && + this.companyId == other.companyId && + this.dob == other.dob && + this.doingBusinessAs == other.doingBusinessAs && + this.name == other.name && + this.owner == other.owner && + this.ownerType == other.ownerType && + this.userDefinedId == other.userDefinedId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address, + companyId, + dob, + doingBusinessAs, + name, + owner, + ownerType, + userDefinedId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternalBankAccountUpdateBody{address=$address, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, name=$name, owner=$owner, ownerType=$ownerType, userDefinedId=$userDefinedId, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountUpdateResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountUpdateResponse.kt index 7ccd321b9..15cc9e955 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountUpdateResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalBankAccountUpdateResponse.kt @@ -51,8 +51,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * A globally unique identifier for this record of an external bank account association. If a * program links an external bank account to more than one end-user or to both the program and @@ -268,72 +266,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalBankAccountUpdateResponse && - this.token == other.token && - this.owner == other.owner && - this.routingNumber == other.routingNumber && - this.lastFour == other.lastFour && - this.name == other.name && - this.currency == other.currency && - this.country == other.country && - this.accountToken == other.accountToken && - this.created == other.created && - this.companyId == other.companyId && - this.dob == other.dob && - this.doingBusinessAs == other.doingBusinessAs && - this.userDefinedId == other.userDefinedId && - this.verificationFailedReason == other.verificationFailedReason && - this.verificationAttempts == other.verificationAttempts && - this.financialAccountToken == other.financialAccountToken && - this.type == other.type && - this.verificationMethod == other.verificationMethod && - this.ownerType == other.ownerType && - this.state == other.state && - this.verificationState == other.verificationState && - this.address == other.address && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - owner, - routingNumber, - lastFour, - name, - currency, - country, - accountToken, - created, - companyId, - dob, - doingBusinessAs, - userDefinedId, - verificationFailedReason, - verificationAttempts, - financialAccountToken, - type, - verificationMethod, - ownerType, - state, - verificationState, - address, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternalBankAccountUpdateResponse{token=$token, owner=$owner, routingNumber=$routingNumber, lastFour=$lastFour, name=$name, currency=$currency, country=$country, accountToken=$accountToken, created=$created, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationAttempts=$verificationAttempts, financialAccountToken=$financialAccountToken, type=$type, verificationMethod=$verificationMethod, ownerType=$ownerType, state=$state, verificationState=$verificationState, address=$address, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -995,4 +927,72 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalBankAccountUpdateResponse && + this.token == other.token && + this.owner == other.owner && + this.routingNumber == other.routingNumber && + this.lastFour == other.lastFour && + this.name == other.name && + this.currency == other.currency && + this.country == other.country && + this.accountToken == other.accountToken && + this.created == other.created && + this.companyId == other.companyId && + this.dob == other.dob && + this.doingBusinessAs == other.doingBusinessAs && + this.userDefinedId == other.userDefinedId && + this.verificationFailedReason == other.verificationFailedReason && + this.verificationAttempts == other.verificationAttempts && + this.financialAccountToken == other.financialAccountToken && + this.type == other.type && + this.verificationMethod == other.verificationMethod && + this.ownerType == other.ownerType && + this.state == other.state && + this.verificationState == other.verificationState && + this.address == other.address && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + owner, + routingNumber, + lastFour, + name, + currency, + country, + accountToken, + created, + companyId, + dob, + doingBusinessAs, + userDefinedId, + verificationFailedReason, + verificationAttempts, + financialAccountToken, + type, + verificationMethod, + ownerType, + state, + verificationState, + address, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternalBankAccountUpdateResponse{token=$token, owner=$owner, routingNumber=$routingNumber, lastFour=$lastFour, name=$name, currency=$currency, country=$country, accountToken=$accountToken, created=$created, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationAttempts=$verificationAttempts, financialAccountToken=$financialAccountToken, type=$type, verificationMethod=$verificationMethod, ownerType=$ownerType, state=$state, verificationState=$verificationState, address=$address, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPayment.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPayment.kt index d08e66ac5..eaa51eab0 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPayment.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPayment.kt @@ -42,8 +42,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun token(): String = token.getRequired("token") fun result(): TransactionResult = result.getRequired("result") @@ -125,54 +123,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalPayment && - this.token == other.token && - this.result == other.result && - this.category == other.category && - this.status == other.status && - this.settledAmount == other.settledAmount && - this.pendingAmount == other.pendingAmount && - this.currency == other.currency && - this.events == other.events && - this.created == other.created && - this.updated == other.updated && - this.userDefinedId == other.userDefinedId && - this.financialAccountToken == other.financialAccountToken && - this.paymentType == other.paymentType && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - result, - category, - status, - settledAmount, - pendingAmount, - currency, - events, - created, - updated, - userDefinedId, - financialAccountToken, - paymentType, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternalPayment{token=$token, result=$result, category=$category, status=$status, settledAmount=$settledAmount, pendingAmount=$pendingAmount, currency=$currency, events=$events, created=$created, updated=$updated, userDefinedId=$userDefinedId, financialAccountToken=$financialAccountToken, paymentType=$paymentType, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -425,8 +375,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun amount(): Long = amount.getRequired("amount") fun type(): ExternalPaymentEventType = type.getRequired("type") @@ -480,44 +428,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalPaymentEvent && - this.amount == other.amount && - this.type == other.type && - this.result == other.result && - this.detailedResults == other.detailedResults && - this.created == other.created && - this.token == other.token && - this.memo == other.memo && - this.effectiveDate == other.effectiveDate && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - type, - result, - detailedResults, - created, - token, - memo, - effectiveDate, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternalPaymentEvent{amount=$amount, type=$type, result=$result, detailedResults=$detailedResults, created=$created, token=$token, memo=$memo, effectiveDate=$effectiveDate, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -942,6 +852,46 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalPaymentEvent && + this.amount == other.amount && + this.type == other.type && + this.result == other.result && + this.detailedResults == other.detailedResults && + this.created == other.created && + this.token == other.token && + this.memo == other.memo && + this.effectiveDate == other.effectiveDate && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + type, + result, + detailedResults, + created, + token, + memo, + effectiveDate, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternalPaymentEvent{amount=$amount, type=$type, result=$result, detailedResults=$detailedResults, created=$created, token=$token, memo=$memo, effectiveDate=$effectiveDate, additionalProperties=$additionalProperties}" } class ExternalPaymentDirection @@ -1132,4 +1082,54 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalPayment && + this.token == other.token && + this.result == other.result && + this.category == other.category && + this.status == other.status && + this.settledAmount == other.settledAmount && + this.pendingAmount == other.pendingAmount && + this.currency == other.currency && + this.events == other.events && + this.created == other.created && + this.updated == other.updated && + this.userDefinedId == other.userDefinedId && + this.financialAccountToken == other.financialAccountToken && + this.paymentType == other.paymentType && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + result, + category, + status, + settledAmount, + pendingAmount, + currency, + events, + created, + updated, + userDefinedId, + financialAccountToken, + paymentType, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternalPayment{token=$token, result=$result, category=$category, status=$status, settledAmount=$settledAmount, pendingAmount=$pendingAmount, currency=$currency, events=$events, created=$created, updated=$updated, userDefinedId=$userDefinedId, financialAccountToken=$financialAccountToken, paymentType=$paymentType, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentCancelParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentCancelParams.kt index a0884869e..8af44c29a 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentCancelParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentCancelParams.kt @@ -60,8 +60,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("effective_date") fun effectiveDate(): LocalDate? = effectiveDate @JsonProperty("memo") fun memo(): String? = memo @@ -72,32 +70,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalPaymentCancelBody && - this.effectiveDate == other.effectiveDate && - this.memo == other.memo && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - effectiveDate, - memo, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternalPaymentCancelBody{effectiveDate=$effectiveDate, memo=$memo, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -144,6 +116,34 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalPaymentCancelBody && + this.effectiveDate == other.effectiveDate && + this.memo == other.memo && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + effectiveDate, + memo, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternalPaymentCancelBody{effectiveDate=$effectiveDate, memo=$memo, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentCreateParams.kt index 1955acec5..307216034 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentCreateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentCreateParams.kt @@ -89,8 +89,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("amount") fun amount(): Long? = amount @JsonProperty("category") fun category(): ExternalPaymentCategory? = category @@ -116,46 +114,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalPaymentCreateBody && - this.amount == other.amount && - this.category == other.category && - this.effectiveDate == other.effectiveDate && - this.financialAccountToken == other.financialAccountToken && - this.paymentType == other.paymentType && - this.token == other.token && - this.memo == other.memo && - this.progressTo == other.progressTo && - this.userDefinedId == other.userDefinedId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - category, - effectiveDate, - financialAccountToken, - paymentType, - token, - memo, - progressTo, - userDefinedId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternalPaymentCreateBody{amount=$amount, category=$category, effectiveDate=$effectiveDate, financialAccountToken=$financialAccountToken, paymentType=$paymentType, token=$token, memo=$memo, progressTo=$progressTo, userDefinedId=$userDefinedId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -250,6 +208,48 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalPaymentCreateBody && + this.amount == other.amount && + this.category == other.category && + this.effectiveDate == other.effectiveDate && + this.financialAccountToken == other.financialAccountToken && + this.paymentType == other.paymentType && + this.token == other.token && + this.memo == other.memo && + this.progressTo == other.progressTo && + this.userDefinedId == other.userDefinedId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + category, + effectiveDate, + financialAccountToken, + paymentType, + token, + memo, + progressTo, + userDefinedId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternalPaymentCreateBody{amount=$amount, category=$category, effectiveDate=$effectiveDate, financialAccountToken=$financialAccountToken, paymentType=$paymentType, token=$token, memo=$memo, progressTo=$progressTo, userDefinedId=$userDefinedId, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentReleaseParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentReleaseParams.kt index 319e9d7d2..7e9a80db6 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentReleaseParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentReleaseParams.kt @@ -60,8 +60,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("effective_date") fun effectiveDate(): LocalDate? = effectiveDate @JsonProperty("memo") fun memo(): String? = memo @@ -72,32 +70,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalPaymentReleaseBody && - this.effectiveDate == other.effectiveDate && - this.memo == other.memo && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - effectiveDate, - memo, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternalPaymentReleaseBody{effectiveDate=$effectiveDate, memo=$memo, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -144,6 +116,34 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalPaymentReleaseBody && + this.effectiveDate == other.effectiveDate && + this.memo == other.memo && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + effectiveDate, + memo, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternalPaymentReleaseBody{effectiveDate=$effectiveDate, memo=$memo, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentReverseParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentReverseParams.kt index 0acd66ee5..56d27d501 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentReverseParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentReverseParams.kt @@ -60,8 +60,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("effective_date") fun effectiveDate(): LocalDate? = effectiveDate @JsonProperty("memo") fun memo(): String? = memo @@ -72,32 +70,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalPaymentReverseBody && - this.effectiveDate == other.effectiveDate && - this.memo == other.memo && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - effectiveDate, - memo, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternalPaymentReverseBody{effectiveDate=$effectiveDate, memo=$memo, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -144,6 +116,34 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalPaymentReverseBody && + this.effectiveDate == other.effectiveDate && + this.memo == other.memo && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + effectiveDate, + memo, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternalPaymentReverseBody{effectiveDate=$effectiveDate, memo=$memo, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentSettleParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentSettleParams.kt index dee75b49b..7668b3dea 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentSettleParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentSettleParams.kt @@ -69,8 +69,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("effective_date") fun effectiveDate(): LocalDate? = effectiveDate @JsonProperty("memo") fun memo(): String? = memo @@ -83,34 +81,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ExternalPaymentSettleBody && - this.effectiveDate == other.effectiveDate && - this.memo == other.memo && - this.progressTo == other.progressTo && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - effectiveDate, - memo, - progressTo, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ExternalPaymentSettleBody{effectiveDate=$effectiveDate, memo=$memo, progressTo=$progressTo, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -165,6 +135,36 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ExternalPaymentSettleBody && + this.effectiveDate == other.effectiveDate && + this.memo == other.memo && + this.progressTo == other.progressTo && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + effectiveDate, + memo, + progressTo, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ExternalPaymentSettleBody{effectiveDate=$effectiveDate, memo=$memo, progressTo=$progressTo, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccount.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccount.kt index 162ec8e62..c4dc50f6f 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccount.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccount.kt @@ -38,8 +38,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Globally unique identifier for the account */ fun token(): String = token.getRequired("token") @@ -112,48 +110,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is FinancialAccount && - this.token == other.token && - this.created == other.created && - this.updated == other.updated && - this.type == other.type && - this.routingNumber == other.routingNumber && - this.accountNumber == other.accountNumber && - this.nickname == other.nickname && - this.accountToken == other.accountToken && - this.isForBenefitOf == other.isForBenefitOf && - this.creditConfiguration == other.creditConfiguration && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - created, - updated, - type, - routingNumber, - accountNumber, - nickname, - accountToken, - isForBenefitOf, - creditConfiguration, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "FinancialAccount{token=$token, created=$created, updated=$updated, type=$type, routingNumber=$routingNumber, accountNumber=$accountNumber, nickname=$nickname, accountToken=$accountToken, isForBenefitOf=$isForBenefitOf, creditConfiguration=$creditConfiguration, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -308,8 +264,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun creditLimit(): Optional = Optional.ofNullable(creditLimit.getNullable("credit_limit")) @@ -363,38 +317,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is FinancialAccountCreditConfig && - this.creditLimit == other.creditLimit && - this.externalBankAccountToken == other.externalBankAccountToken && - this.creditProductToken == other.creditProductToken && - this.tier == other.tier && - this.financialAccountState == other.financialAccountState && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - creditLimit, - externalBankAccountToken, - creditProductToken, - tier, - financialAccountState, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "FinancialAccountCreditConfig{creditLimit=$creditLimit, externalBankAccountToken=$externalBankAccountToken, creditProductToken=$creditProductToken, tier=$tier, financialAccountState=$financialAccountState, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -554,6 +476,40 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is FinancialAccountCreditConfig && + this.creditLimit == other.creditLimit && + this.externalBankAccountToken == other.externalBankAccountToken && + this.creditProductToken == other.creditProductToken && + this.tier == other.tier && + this.financialAccountState == other.financialAccountState && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + creditLimit, + externalBankAccountToken, + creditProductToken, + tier, + financialAccountState, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "FinancialAccountCreditConfig{creditLimit=$creditLimit, externalBankAccountToken=$externalBankAccountToken, creditProductToken=$creditProductToken, tier=$tier, financialAccountState=$financialAccountState, additionalProperties=$additionalProperties}" } class Type @@ -618,4 +574,48 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is FinancialAccount && + this.token == other.token && + this.created == other.created && + this.updated == other.updated && + this.type == other.type && + this.routingNumber == other.routingNumber && + this.accountNumber == other.accountNumber && + this.nickname == other.nickname && + this.accountToken == other.accountToken && + this.isForBenefitOf == other.isForBenefitOf && + this.creditConfiguration == other.creditConfiguration && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + created, + updated, + type, + routingNumber, + accountNumber, + nickname, + accountToken, + isForBenefitOf, + creditConfiguration, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "FinancialAccount{token=$token, created=$created, updated=$updated, type=$type, routingNumber=$routingNumber, accountNumber=$accountNumber, nickname=$nickname, accountToken=$accountToken, isForBenefitOf=$isForBenefitOf, creditConfiguration=$creditConfiguration, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountCreateParams.kt index e576bbcd5..48cda2665 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountCreateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountCreateParams.kt @@ -63,8 +63,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("nickname") fun nickname(): String? = nickname @JsonProperty("type") fun type(): Type? = type @@ -79,36 +77,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is FinancialAccountCreateBody && - this.nickname == other.nickname && - this.type == other.type && - this.accountToken == other.accountToken && - this.isForBenefitOf == other.isForBenefitOf && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - nickname, - type, - accountToken, - isForBenefitOf, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "FinancialAccountCreateBody{nickname=$nickname, type=$type, accountToken=$accountToken, isForBenefitOf=$isForBenefitOf, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -167,6 +135,38 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is FinancialAccountCreateBody && + this.nickname == other.nickname && + this.type == other.type && + this.accountToken == other.accountToken && + this.isForBenefitOf == other.isForBenefitOf && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + nickname, + type, + accountToken, + isForBenefitOf, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "FinancialAccountCreateBody{nickname=$nickname, type=$type, accountToken=$accountToken, isForBenefitOf=$isForBenefitOf, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountCreditConfig.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountCreditConfig.kt index 280c521db..d982da314 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountCreditConfig.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountCreditConfig.kt @@ -33,8 +33,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Globally unique identifier for the account */ fun accountToken(): String = accountToken.getRequired("account_token") @@ -94,40 +92,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is FinancialAccountCreditConfig && - this.accountToken == other.accountToken && - this.creditLimit == other.creditLimit && - this.externalBankAccountToken == other.externalBankAccountToken && - this.creditProductToken == other.creditProductToken && - this.tier == other.tier && - this.financialAccountState == other.financialAccountState && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountToken, - creditLimit, - externalBankAccountToken, - creditProductToken, - tier, - financialAccountState, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "FinancialAccountCreditConfig{accountToken=$accountToken, creditLimit=$creditLimit, externalBankAccountToken=$externalBankAccountToken, creditProductToken=$creditProductToken, tier=$tier, financialAccountState=$financialAccountState, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -297,4 +261,40 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is FinancialAccountCreditConfig && + this.accountToken == other.accountToken && + this.creditLimit == other.creditLimit && + this.externalBankAccountToken == other.externalBankAccountToken && + this.creditProductToken == other.creditProductToken && + this.tier == other.tier && + this.financialAccountState == other.financialAccountState && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountToken, + creditLimit, + externalBankAccountToken, + creditProductToken, + tier, + financialAccountState, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "FinancialAccountCreditConfig{accountToken=$accountToken, creditLimit=$creditLimit, externalBankAccountToken=$externalBankAccountToken, creditProductToken=$creditProductToken, tier=$tier, financialAccountState=$financialAccountState, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountCreditConfigurationUpdateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountCreditConfigurationUpdateParams.kt index ca7c21a0d..b72c464dd 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountCreditConfigurationUpdateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountCreditConfigurationUpdateParams.kt @@ -69,8 +69,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("credit_limit") fun creditLimit(): Long? = creditLimit /** Globally unique identifier for the credit product */ @@ -88,36 +86,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is FinancialAccountCreditConfigurationUpdateBody && - this.creditLimit == other.creditLimit && - this.creditProductToken == other.creditProductToken && - this.externalBankAccountToken == other.externalBankAccountToken && - this.tier == other.tier && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - creditLimit, - creditProductToken, - externalBankAccountToken, - tier, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "FinancialAccountCreditConfigurationUpdateBody{creditLimit=$creditLimit, creditProductToken=$creditProductToken, externalBankAccountToken=$externalBankAccountToken, tier=$tier, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -187,6 +155,38 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is FinancialAccountCreditConfigurationUpdateBody && + this.creditLimit == other.creditLimit && + this.creditProductToken == other.creditProductToken && + this.externalBankAccountToken == other.externalBankAccountToken && + this.tier == other.tier && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + creditLimit, + creditProductToken, + externalBankAccountToken, + tier, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "FinancialAccountCreditConfigurationUpdateBody{creditLimit=$creditLimit, creditProductToken=$creditProductToken, externalBankAccountToken=$externalBankAccountToken, tier=$tier, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountUpdateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountUpdateParams.kt index 677f73f03..a0661cb37 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountUpdateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialAccountUpdateParams.kt @@ -51,8 +51,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("nickname") fun nickname(): String? = nickname @JsonAnyGetter @@ -61,26 +59,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is FinancialAccountUpdateBody && - this.nickname == other.nickname && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(nickname, additionalProperties) - } - return hashCode - } - - override fun toString() = - "FinancialAccountUpdateBody{nickname=$nickname, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -117,6 +95,28 @@ constructor( fun build(): FinancialAccountUpdateBody = FinancialAccountUpdateBody(nickname, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is FinancialAccountUpdateBody && + this.nickname == other.nickname && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(nickname, additionalProperties) + } + return hashCode + } + + override fun toString() = + "FinancialAccountUpdateBody{nickname=$nickname, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialTransaction.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialTransaction.kt index 07c1f93a1..6ccc4a104 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialTransaction.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/FinancialTransaction.kt @@ -39,8 +39,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Status types: * - `CARD` - Issuing card transaction. @@ -182,50 +180,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is FinancialTransaction && - this.category == other.category && - this.created == other.created && - this.currency == other.currency && - this.descriptor == other.descriptor && - this.events == other.events && - this.pendingAmount == other.pendingAmount && - this.result == other.result && - this.settledAmount == other.settledAmount && - this.status == other.status && - this.token == other.token && - this.updated == other.updated && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - category, - created, - currency, - descriptor, - events, - pendingAmount, - result, - settledAmount, - status, - token, - updated, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "FinancialTransaction{category=$category, created=$created, currency=$currency, descriptor=$descriptor, events=$events, pendingAmount=$pendingAmount, result=$result, settledAmount=$settledAmount, status=$status, token=$token, updated=$updated, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -516,8 +470,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Amount of the financial event that has been settled in the currency's smallest unit * (e.g., cents). @@ -576,38 +528,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is FinancialEvent && - this.amount == other.amount && - this.created == other.created && - this.result == other.result && - this.token == other.token && - this.type == other.type && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - created, - result, - token, - type, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "FinancialEvent{amount=$amount, created=$created, result=$result, token=$token, type=$type, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1199,6 +1119,40 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is FinancialEvent && + this.amount == other.amount && + this.created == other.created && + this.result == other.result && + this.token == other.token && + this.type == other.type && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + created, + result, + token, + type, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "FinancialEvent{amount=$amount, created=$created, result=$result, token=$token, type=$type, additionalProperties=$additionalProperties}" } class Result @@ -1338,4 +1292,50 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is FinancialTransaction && + this.category == other.category && + this.created == other.created && + this.currency == other.currency && + this.descriptor == other.descriptor && + this.events == other.events && + this.pendingAmount == other.pendingAmount && + this.result == other.result && + this.settledAmount == other.settledAmount && + this.status == other.status && + this.token == other.token && + this.updated == other.updated && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + category, + created, + currency, + descriptor, + events, + pendingAmount, + result, + settledAmount, + status, + token, + updated, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "FinancialTransaction{category=$category, created=$created, currency=$currency, descriptor=$descriptor, events=$events, pendingAmount=$pendingAmount, result=$result, settledAmount=$settledAmount, status=$status, token=$token, updated=$updated, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Kyb.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Kyb.kt index 12e1cac63..79bb41c39 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Kyb.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Kyb.kt @@ -37,8 +37,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * List of all entities with >25% ownership in the company. If no entity or individual owns >25% * of the company, and the largest shareholder is an entity, please identify them in this field. @@ -196,48 +194,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Kyb && - this.beneficialOwnerEntities == other.beneficialOwnerEntities && - this.beneficialOwnerIndividuals == other.beneficialOwnerIndividuals && - this.businessEntity == other.businessEntity && - this.controlPerson == other.controlPerson && - this.externalId == other.externalId && - this.kybPassedTimestamp == other.kybPassedTimestamp && - this.natureOfBusiness == other.natureOfBusiness && - this.tosTimestamp == other.tosTimestamp && - this.websiteUrl == other.websiteUrl && - this.workflow == other.workflow && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - beneficialOwnerEntities, - beneficialOwnerIndividuals, - businessEntity, - controlPerson, - externalId, - kybPassedTimestamp, - natureOfBusiness, - tosTimestamp, - websiteUrl, - workflow, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Kyb{beneficialOwnerEntities=$beneficialOwnerEntities, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, businessEntity=$businessEntity, controlPerson=$controlPerson, externalId=$externalId, kybPassedTimestamp=$kybPassedTimestamp, natureOfBusiness=$natureOfBusiness, tosTimestamp=$tosTimestamp, websiteUrl=$websiteUrl, workflow=$workflow, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -490,8 +446,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Business's physical address - PO boxes, UPS drops, and FedEx drops are not acceptable; * APO/FPO are acceptable. @@ -568,40 +522,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is BusinessEntity && - this.address == other.address && - this.dbaBusinessName == other.dbaBusinessName && - this.governmentId == other.governmentId && - this.legalBusinessName == other.legalBusinessName && - this.parentCompany == other.parentCompany && - this.phoneNumbers == other.phoneNumbers && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address, - dbaBusinessName, - governmentId, - legalBusinessName, - parentCompany, - phoneNumbers, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "BusinessEntity{address=$address, dbaBusinessName=$dbaBusinessName, governmentId=$governmentId, legalBusinessName=$legalBusinessName, parentCompany=$parentCompany, phoneNumbers=$phoneNumbers, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -731,6 +651,42 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is BusinessEntity && + this.address == other.address && + this.dbaBusinessName == other.dbaBusinessName && + this.governmentId == other.governmentId && + this.legalBusinessName == other.legalBusinessName && + this.parentCompany == other.parentCompany && + this.phoneNumbers == other.phoneNumbers && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address, + dbaBusinessName, + governmentId, + legalBusinessName, + parentCompany, + phoneNumbers, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "BusinessEntity{address=$address, dbaBusinessName=$dbaBusinessName, governmentId=$governmentId, legalBusinessName=$legalBusinessName, parentCompany=$parentCompany, phoneNumbers=$phoneNumbers, additionalProperties=$additionalProperties}" } /** Individuals associated with a KYB application. Phone number is optional. */ @@ -750,8 +706,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Individual's current address - PO boxes, UPS drops, and FedEx drops are not acceptable; * APO/FPO are acceptable. Only USA addresses are currently supported. @@ -836,42 +790,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is KybIndividual && - this.address == other.address && - this.dob == other.dob && - this.email == other.email && - this.firstName == other.firstName && - this.governmentId == other.governmentId && - this.lastName == other.lastName && - this.phoneNumber == other.phoneNumber && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address, - dob, - email, - firstName, - governmentId, - lastName, - phoneNumber, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "KybIndividual{address=$address, dob=$dob, email=$email, firstName=$firstName, governmentId=$governmentId, lastName=$lastName, phoneNumber=$phoneNumber, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1008,6 +926,44 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is KybIndividual && + this.address == other.address && + this.dob == other.dob && + this.email == other.email && + this.firstName == other.firstName && + this.governmentId == other.governmentId && + this.lastName == other.lastName && + this.phoneNumber == other.phoneNumber && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address, + dob, + email, + firstName, + governmentId, + lastName, + phoneNumber, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "KybIndividual{address=$address, dob=$dob, email=$email, firstName=$firstName, governmentId=$governmentId, lastName=$lastName, phoneNumber=$phoneNumber, additionalProperties=$additionalProperties}" } class Workflow @@ -1066,4 +1022,48 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Kyb && + this.beneficialOwnerEntities == other.beneficialOwnerEntities && + this.beneficialOwnerIndividuals == other.beneficialOwnerIndividuals && + this.businessEntity == other.businessEntity && + this.controlPerson == other.controlPerson && + this.externalId == other.externalId && + this.kybPassedTimestamp == other.kybPassedTimestamp && + this.natureOfBusiness == other.natureOfBusiness && + this.tosTimestamp == other.tosTimestamp && + this.websiteUrl == other.websiteUrl && + this.workflow == other.workflow && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + beneficialOwnerEntities, + beneficialOwnerIndividuals, + businessEntity, + controlPerson, + externalId, + kybPassedTimestamp, + natureOfBusiness, + tosTimestamp, + websiteUrl, + workflow, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Kyb{beneficialOwnerEntities=$beneficialOwnerEntities, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, businessEntity=$businessEntity, controlPerson=$controlPerson, externalId=$externalId, kybPassedTimestamp=$kybPassedTimestamp, natureOfBusiness=$natureOfBusiness, tosTimestamp=$tosTimestamp, websiteUrl=$websiteUrl, workflow=$workflow, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Kyc.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Kyc.kt index d2b7c215e..f067c98b7 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Kyc.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Kyc.kt @@ -32,8 +32,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** A user provided id that can be used to link an account holder with an external system */ fun externalId(): Optional = Optional.ofNullable(externalId.getNullable("external_id")) @@ -102,38 +100,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Kyc && - this.externalId == other.externalId && - this.individual == other.individual && - this.kycPassedTimestamp == other.kycPassedTimestamp && - this.tosTimestamp == other.tosTimestamp && - this.workflow == other.workflow && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - externalId, - individual, - kycPassedTimestamp, - tosTimestamp, - workflow, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Kyc{externalId=$externalId, individual=$individual, kycPassedTimestamp=$kycPassedTimestamp, tosTimestamp=$tosTimestamp, workflow=$workflow, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -263,8 +229,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Individual's current address - PO boxes, UPS drops, and FedEx drops are not acceptable; * APO/FPO are acceptable. Only USA addresses are currently supported. @@ -348,42 +312,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Individual && - this.address == other.address && - this.dob == other.dob && - this.email == other.email && - this.firstName == other.firstName && - this.governmentId == other.governmentId && - this.lastName == other.lastName && - this.phoneNumber == other.phoneNumber && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address, - dob, - email, - firstName, - governmentId, - lastName, - phoneNumber, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Individual{address=$address, dob=$dob, email=$email, firstName=$firstName, governmentId=$governmentId, lastName=$lastName, phoneNumber=$phoneNumber, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -520,6 +448,44 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Individual && + this.address == other.address && + this.dob == other.dob && + this.email == other.email && + this.firstName == other.firstName && + this.governmentId == other.governmentId && + this.lastName == other.lastName && + this.phoneNumber == other.phoneNumber && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address, + dob, + email, + firstName, + governmentId, + lastName, + phoneNumber, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Individual{address=$address, dob=$dob, email=$email, firstName=$firstName, governmentId=$governmentId, lastName=$lastName, phoneNumber=$phoneNumber, additionalProperties=$additionalProperties}" } class Workflow @@ -584,4 +550,38 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Kyc && + this.externalId == other.externalId && + this.individual == other.individual && + this.kycPassedTimestamp == other.kycPassedTimestamp && + this.tosTimestamp == other.tosTimestamp && + this.workflow == other.workflow && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + externalId, + individual, + kycPassedTimestamp, + tosTimestamp, + workflow, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Kyc{externalId=$externalId, individual=$individual, kycPassedTimestamp=$kycPassedTimestamp, tosTimestamp=$tosTimestamp, workflow=$workflow, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/KycExempt.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/KycExempt.kt index 2b63aca7d..c3ab596f7 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/KycExempt.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/KycExempt.kt @@ -36,8 +36,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * KYC Exempt user's current address - PO boxes, UPS drops, and FedEx drops are not acceptable; * APO/FPO are acceptable. @@ -130,46 +128,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is KycExempt && - this.address == other.address && - this.businessAccountToken == other.businessAccountToken && - this.email == other.email && - this.externalId == other.externalId && - this.firstName == other.firstName && - this.kycExemptionType == other.kycExemptionType && - this.lastName == other.lastName && - this.phoneNumber == other.phoneNumber && - this.workflow == other.workflow && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address, - businessAccountToken, - email, - externalId, - firstName, - kycExemptionType, - lastName, - phoneNumber, - workflow, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "KycExempt{address=$address, businessAccountToken=$businessAccountToken, email=$email, externalId=$externalId, firstName=$firstName, kycExemptionType=$kycExemptionType, lastName=$lastName, phoneNumber=$phoneNumber, workflow=$workflow, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -430,4 +388,46 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is KycExempt && + this.address == other.address && + this.businessAccountToken == other.businessAccountToken && + this.email == other.email && + this.externalId == other.externalId && + this.firstName == other.firstName && + this.kycExemptionType == other.kycExemptionType && + this.lastName == other.lastName && + this.phoneNumber == other.phoneNumber && + this.workflow == other.workflow && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address, + businessAccountToken, + email, + externalId, + firstName, + kycExemptionType, + lastName, + phoneNumber, + workflow, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "KycExempt{address=$address, businessAccountToken=$businessAccountToken, email=$email, externalId=$externalId, firstName=$firstName, kycExemptionType=$kycExemptionType, lastName=$lastName, phoneNumber=$phoneNumber, workflow=$workflow, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/LineItemListResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/LineItemListResponse.kt index d04b9b5c0..ff6a8bd1f 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/LineItemListResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/LineItemListResponse.kt @@ -41,8 +41,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Globally unique identifier for a Statement Line Item */ fun token(): String = token.getRequired("token") @@ -142,52 +140,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is LineItemListResponse && - this.token == other.token && - this.financialAccountToken == other.financialAccountToken && - this.cardToken == other.cardToken && - this.financialTransactionToken == other.financialTransactionToken && - this.financialTransactionEventToken == other.financialTransactionEventToken && - this.category == other.category && - this.eventType == other.eventType && - this.effectiveDate == other.effectiveDate && - this.descriptor == other.descriptor && - this.amount == other.amount && - this.currency == other.currency && - this.created == other.created && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - financialAccountToken, - cardToken, - financialTransactionToken, - financialTransactionEventToken, - category, - eventType, - effectiveDate, - descriptor, - amount, - currency, - created, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "LineItemListResponse{token=$token, financialAccountToken=$financialAccountToken, cardToken=$cardToken, financialTransactionToken=$financialTransactionToken, financialTransactionEventToken=$financialTransactionEventToken, category=$category, eventType=$eventType, effectiveDate=$effectiveDate, descriptor=$descriptor, amount=$amount, currency=$currency, created=$created, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -892,4 +844,52 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is LineItemListResponse && + this.token == other.token && + this.financialAccountToken == other.financialAccountToken && + this.cardToken == other.cardToken && + this.financialTransactionToken == other.financialTransactionToken && + this.financialTransactionEventToken == other.financialTransactionEventToken && + this.category == other.category && + this.eventType == other.eventType && + this.effectiveDate == other.effectiveDate && + this.descriptor == other.descriptor && + this.amount == other.amount && + this.currency == other.currency && + this.created == other.created && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + financialAccountToken, + cardToken, + financialTransactionToken, + financialTransactionEventToken, + category, + eventType, + effectiveDate, + descriptor, + amount, + currency, + created, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "LineItemListResponse{token=$token, financialAccountToken=$financialAccountToken, cardToken=$cardToken, financialTransactionToken=$financialTransactionToken, financialTransactionEventToken=$financialTransactionEventToken, category=$category, eventType=$eventType, effectiveDate=$effectiveDate, descriptor=$descriptor, amount=$amount, currency=$currency, created=$created, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/LoanTape.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/LoanTape.kt index 6b46ed0e2..acde809e7 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/LoanTape.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/LoanTape.kt @@ -49,8 +49,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Globally unique identifier for a loan tape */ fun token(): String = token.getRequired("token") @@ -226,68 +224,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is LoanTape && - this.token == other.token && - this.financialAccountToken == other.financialAccountToken && - this.date == other.date && - this.created == other.created && - this.updated == other.updated && - this.version == other.version && - this.ytdTotals == other.ytdTotals && - this.periodTotals == other.periodTotals && - this.dayTotals == other.dayTotals && - this.balancePastDue == other.balancePastDue && - this.balanceDue == other.balanceDue && - this.balanceNextDue == other.balanceNextDue && - this.creditLimit == other.creditLimit && - this.excessCredits == other.excessCredits && - this.accountStanding == other.accountStanding && - this.creditProductToken == other.creditProductToken && - this.tier == other.tier && - this.paymentAllocation == other.paymentAllocation && - this.minimumPaymentBalance == other.minimumPaymentBalance && - this.previousStatementBalance == other.previousStatementBalance && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - financialAccountToken, - date, - created, - updated, - version, - ytdTotals, - periodTotals, - dayTotals, - balancePastDue, - balanceDue, - balanceNextDue, - creditLimit, - excessCredits, - accountStanding, - creditProductToken, - tier, - paymentAllocation, - minimumPaymentBalance, - previousStatementBalance, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "LoanTape{token=$token, financialAccountToken=$financialAccountToken, date=$date, created=$created, updated=$updated, version=$version, ytdTotals=$ytdTotals, periodTotals=$periodTotals, dayTotals=$dayTotals, balancePastDue=$balancePastDue, balanceDue=$balanceDue, balanceNextDue=$balanceNextDue, creditLimit=$creditLimit, excessCredits=$excessCredits, accountStanding=$accountStanding, creditProductToken=$creditProductToken, tier=$tier, paymentAllocation=$paymentAllocation, minimumPaymentBalance=$minimumPaymentBalance, previousStatementBalance=$previousStatementBalance, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -600,8 +536,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun periodState(): PeriodState = periodState.getRequired("period_state") /** Current overall period number */ @@ -670,42 +604,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountStanding && - this.periodState == other.periodState && - this.periodNumber == other.periodNumber && - this.consecutiveMinimumPaymentsMade == other.consecutiveMinimumPaymentsMade && - this.consecutiveMinimumPaymentsMissed == other.consecutiveMinimumPaymentsMissed && - this.consecutiveFullPaymentsMade == other.consecutiveFullPaymentsMade && - this.daysPastDue == other.daysPastDue && - this.hasGrace == other.hasGrace && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - periodState, - periodNumber, - consecutiveMinimumPaymentsMade, - consecutiveMinimumPaymentsMissed, - consecutiveFullPaymentsMade, - daysPastDue, - hasGrace, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountStanding{periodState=$periodState, periodNumber=$periodNumber, consecutiveMinimumPaymentsMade=$consecutiveMinimumPaymentsMade, consecutiveMinimumPaymentsMissed=$consecutiveMinimumPaymentsMissed, consecutiveFullPaymentsMade=$consecutiveFullPaymentsMade, daysPastDue=$daysPastDue, hasGrace=$hasGrace, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -892,6 +790,44 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountStanding && + this.periodState == other.periodState && + this.periodNumber == other.periodNumber && + this.consecutiveMinimumPaymentsMade == other.consecutiveMinimumPaymentsMade && + this.consecutiveMinimumPaymentsMissed == other.consecutiveMinimumPaymentsMissed && + this.consecutiveFullPaymentsMade == other.consecutiveFullPaymentsMade && + this.daysPastDue == other.daysPastDue && + this.hasGrace == other.hasGrace && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + periodState, + periodNumber, + consecutiveMinimumPaymentsMade, + consecutiveMinimumPaymentsMissed, + consecutiveFullPaymentsMade, + daysPastDue, + hasGrace, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountStanding{periodState=$periodState, periodNumber=$periodNumber, consecutiveMinimumPaymentsMade=$consecutiveMinimumPaymentsMade, consecutiveMinimumPaymentsMissed=$consecutiveMinimumPaymentsMissed, consecutiveFullPaymentsMade=$consecutiveFullPaymentsMade, daysPastDue=$daysPastDue, hasGrace=$hasGrace, additionalProperties=$additionalProperties}" } /** @@ -910,8 +846,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun interest(): Long = interest.getRequired("interest") fun principal(): Long = principal.getRequired("principal") @@ -939,34 +873,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CategoryBalances && - this.interest == other.interest && - this.principal == other.principal && - this.fees == other.fees && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - interest, - principal, - fees, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CategoryBalances{interest=$interest, principal=$principal, fees=$fees, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1027,6 +933,36 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CategoryBalances && + this.interest == other.interest && + this.principal == other.principal && + this.fees == other.fees && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + interest, + principal, + fees, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CategoryBalances{interest=$interest, principal=$principal, fees=$fees, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = StatementTotals.Builder::class) @@ -1045,8 +981,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Any funds transfers which affective the balance in cents */ fun payments(): Long = payments.getRequired("payments") @@ -1114,42 +1048,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StatementTotals && - this.payments == other.payments && - this.purchases == other.purchases && - this.fees == other.fees && - this.credits == other.credits && - this.interest == other.interest && - this.cashAdvances == other.cashAdvances && - this.balanceTransfers == other.balanceTransfers && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - payments, - purchases, - fees, - credits, - interest, - cashAdvances, - balanceTransfers, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StatementTotals{payments=$payments, purchases=$purchases, fees=$fees, credits=$credits, interest=$interest, cashAdvances=$cashAdvances, balanceTransfers=$balanceTransfers, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1271,6 +1169,44 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StatementTotals && + this.payments == other.payments && + this.purchases == other.purchases && + this.fees == other.fees && + this.credits == other.credits && + this.interest == other.interest && + this.cashAdvances == other.cashAdvances && + this.balanceTransfers == other.balanceTransfers && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + payments, + purchases, + fees, + credits, + interest, + cashAdvances, + balanceTransfers, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "StatementTotals{payments=$payments, purchases=$purchases, fees=$fees, credits=$credits, interest=$interest, cashAdvances=$cashAdvances, balanceTransfers=$balanceTransfers, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = BalanceDetails.Builder::class) @@ -1284,8 +1220,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun amount(): Long = amount.getRequired("amount") fun remaining(): Long = remaining.getRequired("remaining") @@ -1308,32 +1242,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is BalanceDetails && - this.amount == other.amount && - this.remaining == other.remaining && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - remaining, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "BalanceDetails{amount=$amount, remaining=$remaining, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1385,5 +1293,97 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is BalanceDetails && + this.amount == other.amount && + this.remaining == other.remaining && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + remaining, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "BalanceDetails{amount=$amount, remaining=$remaining, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is LoanTape && + this.token == other.token && + this.financialAccountToken == other.financialAccountToken && + this.date == other.date && + this.created == other.created && + this.updated == other.updated && + this.version == other.version && + this.ytdTotals == other.ytdTotals && + this.periodTotals == other.periodTotals && + this.dayTotals == other.dayTotals && + this.balancePastDue == other.balancePastDue && + this.balanceDue == other.balanceDue && + this.balanceNextDue == other.balanceNextDue && + this.creditLimit == other.creditLimit && + this.excessCredits == other.excessCredits && + this.accountStanding == other.accountStanding && + this.creditProductToken == other.creditProductToken && + this.tier == other.tier && + this.paymentAllocation == other.paymentAllocation && + this.minimumPaymentBalance == other.minimumPaymentBalance && + this.previousStatementBalance == other.previousStatementBalance && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + financialAccountToken, + date, + created, + updated, + version, + ytdTotals, + periodTotals, + dayTotals, + balancePastDue, + balanceDue, + balanceNextDue, + creditLimit, + excessCredits, + accountStanding, + creditProductToken, + tier, + paymentAllocation, + minimumPaymentBalance, + previousStatementBalance, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "LoanTape{token=$token, financialAccountToken=$financialAccountToken, date=$date, created=$created, updated=$updated, version=$version, ytdTotals=$ytdTotals, periodTotals=$periodTotals, dayTotals=$dayTotals, balancePastDue=$balancePastDue, balanceDue=$balanceDue, balanceNextDue=$balanceNextDue, creditLimit=$creditLimit, excessCredits=$excessCredits, accountStanding=$accountStanding, creditProductToken=$creditProductToken, tier=$tier, paymentAllocation=$paymentAllocation, minimumPaymentBalance=$minimumPaymentBalance, previousStatementBalance=$previousStatementBalance, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ManagementOperationCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ManagementOperationCreateParams.kt index 8857b037b..54d46544e 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ManagementOperationCreateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ManagementOperationCreateParams.kt @@ -94,8 +94,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("amount") fun amount(): Long? = amount @JsonProperty("category") fun category(): ManagementOperationCategory? = category @@ -123,48 +121,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ManagementOperationCreateBody && - this.amount == other.amount && - this.category == other.category && - this.direction == other.direction && - this.effectiveDate == other.effectiveDate && - this.eventType == other.eventType && - this.financialAccountToken == other.financialAccountToken && - this.token == other.token && - this.memo == other.memo && - this.subtype == other.subtype && - this.userDefinedId == other.userDefinedId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - category, - direction, - effectiveDate, - eventType, - financialAccountToken, - token, - memo, - subtype, - userDefinedId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ManagementOperationCreateBody{amount=$amount, category=$category, direction=$direction, effectiveDate=$effectiveDate, eventType=$eventType, financialAccountToken=$financialAccountToken, token=$token, memo=$memo, subtype=$subtype, userDefinedId=$userDefinedId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -265,6 +221,50 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ManagementOperationCreateBody && + this.amount == other.amount && + this.category == other.category && + this.direction == other.direction && + this.effectiveDate == other.effectiveDate && + this.eventType == other.eventType && + this.financialAccountToken == other.financialAccountToken && + this.token == other.token && + this.memo == other.memo && + this.subtype == other.subtype && + this.userDefinedId == other.userDefinedId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + category, + direction, + effectiveDate, + eventType, + financialAccountToken, + token, + memo, + subtype, + userDefinedId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ManagementOperationCreateBody{amount=$amount, category=$category, direction=$direction, effectiveDate=$effectiveDate, eventType=$eventType, financialAccountToken=$financialAccountToken, token=$token, memo=$memo, subtype=$subtype, userDefinedId=$userDefinedId, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ManagementOperationReverseParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ManagementOperationReverseParams.kt index ea834c169..c5922d6d1 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ManagementOperationReverseParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ManagementOperationReverseParams.kt @@ -60,8 +60,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("effective_date") fun effectiveDate(): LocalDate? = effectiveDate @JsonProperty("memo") fun memo(): String? = memo @@ -72,32 +70,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ManagementOperationReverseBody && - this.effectiveDate == other.effectiveDate && - this.memo == other.memo && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - effectiveDate, - memo, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ManagementOperationReverseBody{effectiveDate=$effectiveDate, memo=$memo, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -145,6 +117,34 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ManagementOperationReverseBody && + this.effectiveDate == other.effectiveDate && + this.memo == other.memo && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + effectiveDate, + memo, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ManagementOperationReverseBody{effectiveDate=$effectiveDate, memo=$memo, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ManagementOperationTransaction.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ManagementOperationTransaction.kt index b33c6cb0b..1381d14aa 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ManagementOperationTransaction.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ManagementOperationTransaction.kt @@ -42,8 +42,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun token(): String = token.getRequired("token") fun result(): TransactionResult = result.getRequired("result") @@ -125,54 +123,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ManagementOperationTransaction && - this.token == other.token && - this.result == other.result && - this.category == other.category && - this.status == other.status && - this.settledAmount == other.settledAmount && - this.pendingAmount == other.pendingAmount && - this.currency == other.currency && - this.events == other.events && - this.created == other.created && - this.updated == other.updated && - this.userDefinedId == other.userDefinedId && - this.financialAccountToken == other.financialAccountToken && - this.direction == other.direction && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - result, - category, - status, - settledAmount, - pendingAmount, - currency, - events, - created, - updated, - userDefinedId, - financialAccountToken, - direction, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ManagementOperationTransaction{token=$token, result=$result, category=$category, status=$status, settledAmount=$settledAmount, pendingAmount=$pendingAmount, currency=$currency, events=$events, created=$created, updated=$updated, userDefinedId=$userDefinedId, financialAccountToken=$financialAccountToken, direction=$direction, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -490,8 +440,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun amount(): Long = amount.getRequired("amount") fun type(): ManagementOperationEventType = type.getRequired("type") @@ -550,46 +498,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ManagementOperationEvent && - this.amount == other.amount && - this.type == other.type && - this.subtype == other.subtype && - this.result == other.result && - this.detailedResults == other.detailedResults && - this.created == other.created && - this.token == other.token && - this.memo == other.memo && - this.effectiveDate == other.effectiveDate && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - type, - subtype, - result, - detailedResults, - created, - token, - memo, - effectiveDate, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ManagementOperationEvent{amount=$amount, type=$type, subtype=$subtype, result=$result, detailedResults=$detailedResults, created=$created, token=$token, memo=$memo, effectiveDate=$effectiveDate, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -955,6 +863,48 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ManagementOperationEvent && + this.amount == other.amount && + this.type == other.type && + this.subtype == other.subtype && + this.result == other.result && + this.detailedResults == other.detailedResults && + this.created == other.created && + this.token == other.token && + this.memo == other.memo && + this.effectiveDate == other.effectiveDate && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + type, + subtype, + result, + detailedResults, + created, + token, + memo, + effectiveDate, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ManagementOperationEvent{amount=$amount, type=$type, subtype=$subtype, result=$result, detailedResults=$detailedResults, created=$created, token=$token, memo=$memo, effectiveDate=$effectiveDate, additionalProperties=$additionalProperties}" } class TransactionResult @@ -1088,4 +1038,54 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ManagementOperationTransaction && + this.token == other.token && + this.result == other.result && + this.category == other.category && + this.status == other.status && + this.settledAmount == other.settledAmount && + this.pendingAmount == other.pendingAmount && + this.currency == other.currency && + this.events == other.events && + this.created == other.created && + this.updated == other.updated && + this.userDefinedId == other.userDefinedId && + this.financialAccountToken == other.financialAccountToken && + this.direction == other.direction && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + result, + category, + status, + settledAmount, + pendingAmount, + currency, + events, + created, + updated, + userDefinedId, + financialAccountToken, + direction, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ManagementOperationTransaction{token=$token, result=$result, category=$category, status=$status, settledAmount=$settledAmount, pendingAmount=$pendingAmount, currency=$currency, events=$events, created=$created, updated=$updated, userDefinedId=$userDefinedId, financialAccountToken=$financialAccountToken, direction=$direction, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/MessageAttempt.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/MessageAttempt.kt index 3b89af60b..db53ba58c 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/MessageAttempt.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/MessageAttempt.kt @@ -36,8 +36,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * An RFC 3339 timestamp for when the event was created. UTC time zone. * @@ -117,44 +115,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is MessageAttempt && - this.created == other.created && - this.eventSubscriptionToken == other.eventSubscriptionToken && - this.eventToken == other.eventToken && - this.response == other.response && - this.responseStatusCode == other.responseStatusCode && - this.status == other.status && - this.token == other.token && - this.url == other.url && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - created, - eventSubscriptionToken, - eventToken, - response, - responseStatusCode, - status, - token, - url, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "MessageAttempt{created=$created, eventSubscriptionToken=$eventSubscriptionToken, eventToken=$eventToken, response=$response, responseStatusCode=$responseStatusCode, status=$status, token=$token, url=$url, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -357,4 +317,44 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is MessageAttempt && + this.created == other.created && + this.eventSubscriptionToken == other.eventSubscriptionToken && + this.eventToken == other.eventToken && + this.response == other.response && + this.responseStatusCode == other.responseStatusCode && + this.status == other.status && + this.token == other.token && + this.url == other.url && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + created, + eventSubscriptionToken, + eventToken, + response, + responseStatusCode, + status, + token, + url, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "MessageAttempt{created=$created, eventSubscriptionToken=$eventSubscriptionToken, eventToken=$eventToken, response=$response, responseStatusCode=$responseStatusCode, status=$status, token=$token, url=$url, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/MicroDepositCreateResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/MicroDepositCreateResponse.kt index 9b2571c98..fea56f4a2 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/MicroDepositCreateResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/MicroDepositCreateResponse.kt @@ -51,8 +51,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * A globally unique identifier for this record of an external bank account association. If a * program links an external bank account to more than one end-user or to both the program and @@ -268,72 +266,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is MicroDepositCreateResponse && - this.token == other.token && - this.owner == other.owner && - this.routingNumber == other.routingNumber && - this.lastFour == other.lastFour && - this.name == other.name && - this.currency == other.currency && - this.country == other.country && - this.accountToken == other.accountToken && - this.created == other.created && - this.companyId == other.companyId && - this.dob == other.dob && - this.doingBusinessAs == other.doingBusinessAs && - this.userDefinedId == other.userDefinedId && - this.verificationFailedReason == other.verificationFailedReason && - this.verificationAttempts == other.verificationAttempts && - this.financialAccountToken == other.financialAccountToken && - this.type == other.type && - this.verificationMethod == other.verificationMethod && - this.ownerType == other.ownerType && - this.state == other.state && - this.verificationState == other.verificationState && - this.address == other.address && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - owner, - routingNumber, - lastFour, - name, - currency, - country, - accountToken, - created, - companyId, - dob, - doingBusinessAs, - userDefinedId, - verificationFailedReason, - verificationAttempts, - financialAccountToken, - type, - verificationMethod, - ownerType, - state, - verificationState, - address, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "MicroDepositCreateResponse{token=$token, owner=$owner, routingNumber=$routingNumber, lastFour=$lastFour, name=$name, currency=$currency, country=$country, accountToken=$accountToken, created=$created, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationAttempts=$verificationAttempts, financialAccountToken=$financialAccountToken, type=$type, verificationMethod=$verificationMethod, ownerType=$ownerType, state=$state, verificationState=$verificationState, address=$address, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -993,4 +925,72 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is MicroDepositCreateResponse && + this.token == other.token && + this.owner == other.owner && + this.routingNumber == other.routingNumber && + this.lastFour == other.lastFour && + this.name == other.name && + this.currency == other.currency && + this.country == other.country && + this.accountToken == other.accountToken && + this.created == other.created && + this.companyId == other.companyId && + this.dob == other.dob && + this.doingBusinessAs == other.doingBusinessAs && + this.userDefinedId == other.userDefinedId && + this.verificationFailedReason == other.verificationFailedReason && + this.verificationAttempts == other.verificationAttempts && + this.financialAccountToken == other.financialAccountToken && + this.type == other.type && + this.verificationMethod == other.verificationMethod && + this.ownerType == other.ownerType && + this.state == other.state && + this.verificationState == other.verificationState && + this.address == other.address && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + owner, + routingNumber, + lastFour, + name, + currency, + country, + accountToken, + created, + companyId, + dob, + doingBusinessAs, + userDefinedId, + verificationFailedReason, + verificationAttempts, + financialAccountToken, + type, + verificationMethod, + ownerType, + state, + verificationState, + address, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "MicroDepositCreateResponse{token=$token, owner=$owner, routingNumber=$routingNumber, lastFour=$lastFour, name=$name, currency=$currency, country=$country, accountToken=$accountToken, created=$created, companyId=$companyId, dob=$dob, doingBusinessAs=$doingBusinessAs, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationAttempts=$verificationAttempts, financialAccountToken=$financialAccountToken, type=$type, verificationMethod=$verificationMethod, ownerType=$ownerType, state=$state, verificationState=$verificationState, address=$address, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Payment.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Payment.kt index 52669d5e8..db9aa2a3a 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Payment.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Payment.kt @@ -46,8 +46,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Payment category */ fun category(): Category = category.getRequired("category") @@ -210,64 +208,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Payment && - this.category == other.category && - this.created == other.created && - this.currency == other.currency && - this.descriptor == other.descriptor && - this.events == other.events && - this.pendingAmount == other.pendingAmount && - this.result == other.result && - this.settledAmount == other.settledAmount && - this.status == other.status && - this.token == other.token && - this.updated == other.updated && - this.direction == other.direction && - this.financialAccountToken == other.financialAccountToken && - this.externalBankAccountToken == other.externalBankAccountToken && - this.method == other.method && - this.methodAttributes == other.methodAttributes && - this.source == other.source && - this.userDefinedId == other.userDefinedId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - category, - created, - currency, - descriptor, - events, - pendingAmount, - result, - settledAmount, - status, - token, - updated, - direction, - financialAccountToken, - externalBankAccountToken, - method, - methodAttributes, - source, - userDefinedId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Payment{category=$category, created=$created, currency=$currency, descriptor=$descriptor, events=$events, pendingAmount=$pendingAmount, result=$result, settledAmount=$settledAmount, status=$status, token=$token, updated=$updated, direction=$direction, financialAccountToken=$financialAccountToken, externalBankAccountToken=$externalBankAccountToken, method=$method, methodAttributes=$methodAttributes, source=$source, userDefinedId=$userDefinedId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -660,8 +600,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Amount of the financial event that has been settled in the currency's smallest unit * (e.g., cents). @@ -761,40 +699,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PaymentEvent && - this.amount == other.amount && - this.created == other.created && - this.detailedResults == other.detailedResults && - this.result == other.result && - this.token == other.token && - this.type == other.type && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - created, - detailedResults, - result, - token, - type, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "PaymentEvent{amount=$amount, created=$created, detailedResults=$detailedResults, result=$result, token=$token, type=$type, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1209,6 +1113,42 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PaymentEvent && + this.amount == other.amount && + this.created == other.created && + this.detailedResults == other.detailedResults && + this.result == other.result && + this.token == other.token && + this.type == other.type && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + created, + detailedResults, + result, + token, + type, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "PaymentEvent{amount=$amount, created=$created, detailedResults=$detailedResults, result=$result, token=$token, type=$type, additionalProperties=$additionalProperties}" } class Method @@ -1283,8 +1223,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun companyId(): Optional = Optional.ofNullable(companyId.getNullable("company_id")) fun receiptRoutingNumber(): Optional = @@ -1333,40 +1271,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PaymentMethodAttributes && - this.companyId == other.companyId && - this.receiptRoutingNumber == other.receiptRoutingNumber && - this.retries == other.retries && - this.returnReasonCode == other.returnReasonCode && - this.secCode == other.secCode && - this.traceNumbers == other.traceNumbers && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - companyId, - receiptRoutingNumber, - retries, - returnReasonCode, - secCode, - traceNumbers, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "PaymentMethodAttributes{companyId=$companyId, receiptRoutingNumber=$receiptRoutingNumber, retries=$retries, returnReasonCode=$returnReasonCode, secCode=$secCode, traceNumbers=$traceNumbers, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1525,6 +1429,42 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PaymentMethodAttributes && + this.companyId == other.companyId && + this.receiptRoutingNumber == other.receiptRoutingNumber && + this.retries == other.retries && + this.returnReasonCode == other.returnReasonCode && + this.secCode == other.secCode && + this.traceNumbers == other.traceNumbers && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + companyId, + receiptRoutingNumber, + retries, + returnReasonCode, + secCode, + traceNumbers, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "PaymentMethodAttributes{companyId=$companyId, receiptRoutingNumber=$receiptRoutingNumber, retries=$retries, returnReasonCode=$returnReasonCode, secCode=$secCode, traceNumbers=$traceNumbers, additionalProperties=$additionalProperties}" } class Result @@ -1709,4 +1649,64 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Payment && + this.category == other.category && + this.created == other.created && + this.currency == other.currency && + this.descriptor == other.descriptor && + this.events == other.events && + this.pendingAmount == other.pendingAmount && + this.result == other.result && + this.settledAmount == other.settledAmount && + this.status == other.status && + this.token == other.token && + this.updated == other.updated && + this.direction == other.direction && + this.financialAccountToken == other.financialAccountToken && + this.externalBankAccountToken == other.externalBankAccountToken && + this.method == other.method && + this.methodAttributes == other.methodAttributes && + this.source == other.source && + this.userDefinedId == other.userDefinedId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + category, + created, + currency, + descriptor, + events, + pendingAmount, + result, + settledAmount, + status, + token, + updated, + direction, + financialAccountToken, + externalBankAccountToken, + method, + methodAttributes, + source, + userDefinedId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Payment{category=$category, created=$created, currency=$currency, descriptor=$descriptor, events=$events, pendingAmount=$pendingAmount, result=$result, settledAmount=$settledAmount, status=$status, token=$token, updated=$updated, direction=$direction, financialAccountToken=$financialAccountToken, externalBankAccountToken=$externalBankAccountToken, method=$method, methodAttributes=$methodAttributes, source=$source, userDefinedId=$userDefinedId, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentCreateParams.kt index 11e9fe7f0..9810d3634 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentCreateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentCreateParams.kt @@ -88,8 +88,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("amount") fun amount(): Long? = amount @JsonProperty("external_bank_account_token") @@ -121,46 +119,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PaymentCreateBody && - this.amount == other.amount && - this.externalBankAccountToken == other.externalBankAccountToken && - this.financialAccountToken == other.financialAccountToken && - this.method == other.method && - this.methodAttributes == other.methodAttributes && - this.type == other.type && - this.token == other.token && - this.memo == other.memo && - this.userDefinedId == other.userDefinedId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - externalBankAccountToken, - financialAccountToken, - method, - methodAttributes, - type, - token, - memo, - userDefinedId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "PaymentCreateBody{amount=$amount, externalBankAccountToken=$externalBankAccountToken, financialAccountToken=$financialAccountToken, method=$method, methodAttributes=$methodAttributes, type=$type, token=$token, memo=$memo, userDefinedId=$userDefinedId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -259,6 +217,48 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PaymentCreateBody && + this.amount == other.amount && + this.externalBankAccountToken == other.externalBankAccountToken && + this.financialAccountToken == other.financialAccountToken && + this.method == other.method && + this.methodAttributes == other.methodAttributes && + this.type == other.type && + this.token == other.token && + this.memo == other.memo && + this.userDefinedId == other.userDefinedId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + externalBankAccountToken, + financialAccountToken, + method, + methodAttributes, + type, + token, + memo, + userDefinedId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "PaymentCreateBody{amount=$amount, externalBankAccountToken=$externalBankAccountToken, financialAccountToken=$financialAccountToken, method=$method, methodAttributes=$methodAttributes, type=$type, token=$token, memo=$memo, userDefinedId=$userDefinedId, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams @@ -514,8 +514,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("sec_code") fun secCode(): SecCode? = secCode @JsonAnyGetter @@ -524,26 +522,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PaymentMethodRequestAttributes && - this.secCode == other.secCode && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(secCode, additionalProperties) - } - return hashCode - } - - override fun toString() = - "PaymentMethodRequestAttributes{secCode=$secCode, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -647,6 +625,28 @@ constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PaymentMethodRequestAttributes && + this.secCode == other.secCode && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(secCode, additionalProperties) + } + return hashCode + } + + override fun toString() = + "PaymentMethodRequestAttributes{secCode=$secCode, additionalProperties=$additionalProperties}" } class Type diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentCreateResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentCreateResponse.kt index bea2da985..6e6c55022 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentCreateResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentCreateResponse.kt @@ -44,8 +44,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Payment category */ fun category(): Payment.Category = category.getRequired("category") @@ -237,66 +235,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PaymentCreateResponse && - this.category == other.category && - this.created == other.created && - this.currency == other.currency && - this.descriptor == other.descriptor && - this.events == other.events && - this.pendingAmount == other.pendingAmount && - this.result == other.result && - this.settledAmount == other.settledAmount && - this.status == other.status && - this.token == other.token && - this.updated == other.updated && - this.direction == other.direction && - this.financialAccountToken == other.financialAccountToken && - this.externalBankAccountToken == other.externalBankAccountToken && - this.method == other.method && - this.methodAttributes == other.methodAttributes && - this.source == other.source && - this.userDefinedId == other.userDefinedId && - this.balance == other.balance && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - category, - created, - currency, - descriptor, - events, - pendingAmount, - result, - settledAmount, - status, - token, - updated, - direction, - financialAccountToken, - externalBankAccountToken, - method, - methodAttributes, - source, - userDefinedId, - balance, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "PaymentCreateResponse{category=$category, created=$created, currency=$currency, descriptor=$descriptor, events=$events, pendingAmount=$pendingAmount, result=$result, settledAmount=$settledAmount, status=$status, token=$token, updated=$updated, direction=$direction, financialAccountToken=$financialAccountToken, externalBankAccountToken=$externalBankAccountToken, method=$method, methodAttributes=$methodAttributes, source=$source, userDefinedId=$userDefinedId, balance=$balance, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -578,4 +516,66 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PaymentCreateResponse && + this.category == other.category && + this.created == other.created && + this.currency == other.currency && + this.descriptor == other.descriptor && + this.events == other.events && + this.pendingAmount == other.pendingAmount && + this.result == other.result && + this.settledAmount == other.settledAmount && + this.status == other.status && + this.token == other.token && + this.updated == other.updated && + this.direction == other.direction && + this.financialAccountToken == other.financialAccountToken && + this.externalBankAccountToken == other.externalBankAccountToken && + this.method == other.method && + this.methodAttributes == other.methodAttributes && + this.source == other.source && + this.userDefinedId == other.userDefinedId && + this.balance == other.balance && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + category, + created, + currency, + descriptor, + events, + pendingAmount, + result, + settledAmount, + status, + token, + updated, + direction, + financialAccountToken, + externalBankAccountToken, + method, + methodAttributes, + source, + userDefinedId, + balance, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "PaymentCreateResponse{category=$category, created=$created, currency=$currency, descriptor=$descriptor, events=$events, pendingAmount=$pendingAmount, result=$result, settledAmount=$settledAmount, status=$status, token=$token, updated=$updated, direction=$direction, financialAccountToken=$financialAccountToken, externalBankAccountToken=$externalBankAccountToken, method=$method, methodAttributes=$methodAttributes, source=$source, userDefinedId=$userDefinedId, balance=$balance, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentRetryResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentRetryResponse.kt index 9a8428dce..584de440a 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentRetryResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentRetryResponse.kt @@ -44,8 +44,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Payment category */ fun category(): Payment.Category = category.getRequired("category") @@ -237,66 +235,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PaymentRetryResponse && - this.category == other.category && - this.created == other.created && - this.currency == other.currency && - this.descriptor == other.descriptor && - this.events == other.events && - this.pendingAmount == other.pendingAmount && - this.result == other.result && - this.settledAmount == other.settledAmount && - this.status == other.status && - this.token == other.token && - this.updated == other.updated && - this.direction == other.direction && - this.financialAccountToken == other.financialAccountToken && - this.externalBankAccountToken == other.externalBankAccountToken && - this.method == other.method && - this.methodAttributes == other.methodAttributes && - this.source == other.source && - this.userDefinedId == other.userDefinedId && - this.balance == other.balance && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - category, - created, - currency, - descriptor, - events, - pendingAmount, - result, - settledAmount, - status, - token, - updated, - direction, - financialAccountToken, - externalBankAccountToken, - method, - methodAttributes, - source, - userDefinedId, - balance, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "PaymentRetryResponse{category=$category, created=$created, currency=$currency, descriptor=$descriptor, events=$events, pendingAmount=$pendingAmount, result=$result, settledAmount=$settledAmount, status=$status, token=$token, updated=$updated, direction=$direction, financialAccountToken=$financialAccountToken, externalBankAccountToken=$externalBankAccountToken, method=$method, methodAttributes=$methodAttributes, source=$source, userDefinedId=$userDefinedId, balance=$balance, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -578,4 +516,66 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PaymentRetryResponse && + this.category == other.category && + this.created == other.created && + this.currency == other.currency && + this.descriptor == other.descriptor && + this.events == other.events && + this.pendingAmount == other.pendingAmount && + this.result == other.result && + this.settledAmount == other.settledAmount && + this.status == other.status && + this.token == other.token && + this.updated == other.updated && + this.direction == other.direction && + this.financialAccountToken == other.financialAccountToken && + this.externalBankAccountToken == other.externalBankAccountToken && + this.method == other.method && + this.methodAttributes == other.methodAttributes && + this.source == other.source && + this.userDefinedId == other.userDefinedId && + this.balance == other.balance && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + category, + created, + currency, + descriptor, + events, + pendingAmount, + result, + settledAmount, + status, + token, + updated, + direction, + financialAccountToken, + externalBankAccountToken, + method, + methodAttributes, + source, + userDefinedId, + balance, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "PaymentRetryResponse{category=$category, created=$created, currency=$currency, descriptor=$descriptor, events=$events, pendingAmount=$pendingAmount, result=$result, settledAmount=$settledAmount, status=$status, token=$token, updated=$updated, direction=$direction, financialAccountToken=$financialAccountToken, externalBankAccountToken=$externalBankAccountToken, method=$method, methodAttributes=$methodAttributes, source=$source, userDefinedId=$userDefinedId, balance=$balance, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateActionParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateActionParams.kt index 8eed92331..aebf0d88c 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateActionParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateActionParams.kt @@ -69,8 +69,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Event Type */ @JsonProperty("event_type") fun eventType(): SupportedSimulationTypes? = eventType @@ -87,34 +85,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PaymentSimulateActionBody && - this.eventType == other.eventType && - this.declineReason == other.declineReason && - this.returnReasonCode == other.returnReasonCode && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - eventType, - declineReason, - returnReasonCode, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "PaymentSimulateActionBody{eventType=$eventType, declineReason=$declineReason, returnReasonCode=$returnReasonCode, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -175,6 +145,36 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PaymentSimulateActionBody && + this.eventType == other.eventType && + this.declineReason == other.declineReason && + this.returnReasonCode == other.returnReasonCode && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + eventType, + declineReason, + returnReasonCode, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "PaymentSimulateActionBody{eventType=$eventType, declineReason=$declineReason, returnReasonCode=$returnReasonCode, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateActionResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateActionResponse.kt index ed544c73c..a8ddec810 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateActionResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateActionResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Request Result */ fun result(): Result = result.getRequired("result") @@ -69,34 +67,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PaymentSimulateActionResponse && - this.result == other.result && - this.transactionEventToken == other.transactionEventToken && - this.debuggingRequestId == other.debuggingRequestId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - result, - transactionEventToken, - debuggingRequestId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "PaymentSimulateActionResponse{result=$result, transactionEventToken=$transactionEventToken, debuggingRequestId=$debuggingRequestId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -226,4 +196,34 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PaymentSimulateActionResponse && + this.result == other.result && + this.transactionEventToken == other.transactionEventToken && + this.debuggingRequestId == other.debuggingRequestId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + result, + transactionEventToken, + debuggingRequestId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "PaymentSimulateActionResponse{result=$result, transactionEventToken=$transactionEventToken, debuggingRequestId=$debuggingRequestId, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReceiptParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReceiptParams.kt index b57fd8168..59d7632cb 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReceiptParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReceiptParams.kt @@ -68,8 +68,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Payment token */ @JsonProperty("token") fun token(): String? = token @@ -92,38 +90,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PaymentSimulateReceiptBody && - this.token == other.token && - this.amount == other.amount && - this.financialAccountToken == other.financialAccountToken && - this.receiptType == other.receiptType && - this.memo == other.memo && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - amount, - financialAccountToken, - receiptType, - memo, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "PaymentSimulateReceiptBody{token=$token, amount=$amount, financialAccountToken=$financialAccountToken, receiptType=$receiptType, memo=$memo, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -193,6 +159,40 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PaymentSimulateReceiptBody && + this.token == other.token && + this.amount == other.amount && + this.financialAccountToken == other.financialAccountToken && + this.receiptType == other.receiptType && + this.memo == other.memo && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + amount, + financialAccountToken, + receiptType, + memo, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "PaymentSimulateReceiptBody{token=$token, amount=$amount, financialAccountToken=$financialAccountToken, receiptType=$receiptType, memo=$memo, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReceiptResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReceiptResponse.kt index 909e7ebd3..57c684565 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReceiptResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReceiptResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Request Result */ fun result(): Result = result.getRequired("result") @@ -69,34 +67,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PaymentSimulateReceiptResponse && - this.result == other.result && - this.transactionEventToken == other.transactionEventToken && - this.debuggingRequestId == other.debuggingRequestId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - result, - transactionEventToken, - debuggingRequestId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "PaymentSimulateReceiptResponse{result=$result, transactionEventToken=$transactionEventToken, debuggingRequestId=$debuggingRequestId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -226,4 +196,34 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PaymentSimulateReceiptResponse && + this.result == other.result && + this.transactionEventToken == other.transactionEventToken && + this.debuggingRequestId == other.debuggingRequestId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + result, + transactionEventToken, + debuggingRequestId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "PaymentSimulateReceiptResponse{result=$result, transactionEventToken=$transactionEventToken, debuggingRequestId=$debuggingRequestId, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReleaseParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReleaseParams.kt index 1e88a7e02..ec6d7cdd1 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReleaseParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReleaseParams.kt @@ -40,8 +40,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Payment Token */ @JsonProperty("payment_token") fun paymentToken(): String? = paymentToken @@ -51,26 +49,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PaymentSimulateReleaseBody && - this.paymentToken == other.paymentToken && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(paymentToken, additionalProperties) - } - return hashCode - } - - override fun toString() = - "PaymentSimulateReleaseBody{paymentToken=$paymentToken, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -111,6 +89,28 @@ constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PaymentSimulateReleaseBody && + this.paymentToken == other.paymentToken && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(paymentToken, additionalProperties) + } + return hashCode + } + + override fun toString() = + "PaymentSimulateReleaseBody{paymentToken=$paymentToken, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReleaseResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReleaseResponse.kt index 59f34a4a0..78b9a01a9 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReleaseResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReleaseResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Request Result */ fun result(): Result = result.getRequired("result") @@ -69,34 +67,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PaymentSimulateReleaseResponse && - this.result == other.result && - this.transactionEventToken == other.transactionEventToken && - this.debuggingRequestId == other.debuggingRequestId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - result, - transactionEventToken, - debuggingRequestId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "PaymentSimulateReleaseResponse{result=$result, transactionEventToken=$transactionEventToken, debuggingRequestId=$debuggingRequestId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -226,4 +196,34 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PaymentSimulateReleaseResponse && + this.result == other.result && + this.transactionEventToken == other.transactionEventToken && + this.debuggingRequestId == other.debuggingRequestId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + result, + transactionEventToken, + debuggingRequestId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "PaymentSimulateReleaseResponse{result=$result, transactionEventToken=$transactionEventToken, debuggingRequestId=$debuggingRequestId, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReturnParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReturnParams.kt index 2d43859c5..172f717a3 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReturnParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReturnParams.kt @@ -49,8 +49,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Payment Token */ @JsonProperty("payment_token") fun paymentToken(): String? = paymentToken @@ -63,32 +61,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PaymentSimulateReturnBody && - this.paymentToken == other.paymentToken && - this.returnReasonCode == other.returnReasonCode && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - paymentToken, - returnReasonCode, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "PaymentSimulateReturnBody{paymentToken=$paymentToken, returnReasonCode=$returnReasonCode, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -138,6 +110,34 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PaymentSimulateReturnBody && + this.paymentToken == other.paymentToken && + this.returnReasonCode == other.returnReasonCode && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + paymentToken, + returnReasonCode, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "PaymentSimulateReturnBody{paymentToken=$paymentToken, returnReasonCode=$returnReasonCode, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReturnResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReturnResponse.kt index 7d685c1fe..d8d701b7c 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReturnResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/PaymentSimulateReturnResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Request Result */ fun result(): Result = result.getRequired("result") @@ -69,34 +67,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PaymentSimulateReturnResponse && - this.result == other.result && - this.transactionEventToken == other.transactionEventToken && - this.debuggingRequestId == other.debuggingRequestId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - result, - transactionEventToken, - debuggingRequestId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "PaymentSimulateReturnResponse{result=$result, transactionEventToken=$transactionEventToken, debuggingRequestId=$debuggingRequestId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -226,4 +196,34 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PaymentSimulateReturnResponse && + this.result == other.result && + this.transactionEventToken == other.transactionEventToken && + this.debuggingRequestId == other.debuggingRequestId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + result, + transactionEventToken, + debuggingRequestId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "PaymentSimulateReturnResponse{result=$result, transactionEventToken=$transactionEventToken, debuggingRequestId=$debuggingRequestId, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/RequiredDocument.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/RequiredDocument.kt index 7b9de9831..0fc868bf3 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/RequiredDocument.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/RequiredDocument.kt @@ -26,8 +26,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Globally unique identifier for an entity. */ fun entityToken(): String = entityToken.getRequired("entity_token") @@ -69,34 +67,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is RequiredDocument && - this.entityToken == other.entityToken && - this.validDocuments == other.validDocuments && - this.statusReasons == other.statusReasons && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - entityToken, - validDocuments, - statusReasons, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "RequiredDocument{entityToken=$entityToken, validDocuments=$validDocuments, statusReasons=$statusReasons, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -180,4 +150,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is RequiredDocument && + this.entityToken == other.entityToken && + this.validDocuments == other.validDocuments && + this.statusReasons == other.statusReasons && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + entityToken, + validDocuments, + statusReasons, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "RequiredDocument{entityToken=$entityToken, validDocuments=$validDocuments, statusReasons=$statusReasons, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCreateParams.kt index 62b1e5e5f..e2ef2d22f 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCreateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCreateParams.kt @@ -53,8 +53,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** The type of the endpoint. */ @JsonProperty("type") fun type(): Type? = type @@ -67,32 +65,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ResponderEndpointCreateBody && - this.type == other.type && - this.url == other.url && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - type, - url, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ResponderEndpointCreateBody{type=$type, url=$url, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -138,6 +110,34 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ResponderEndpointCreateBody && + this.type == other.type && + this.url == other.url && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + type, + url, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ResponderEndpointCreateBody{type=$type, url=$url, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCreateResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCreateResponse.kt index d833ac0b6..ba487dbcd 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCreateResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCreateResponse.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** True if the endpoint was enrolled successfully. */ fun enrolled(): Optional = Optional.ofNullable(enrolled.getNullable("enrolled")) @@ -46,26 +44,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ResponderEndpointCreateResponse && - this.enrolled == other.enrolled && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(enrolled, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ResponderEndpointCreateResponse{enrolled=$enrolled, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -108,4 +86,26 @@ private constructor( fun build(): ResponderEndpointCreateResponse = ResponderEndpointCreateResponse(enrolled, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ResponderEndpointCreateResponse && + this.enrolled == other.enrolled && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(enrolled, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ResponderEndpointCreateResponse{enrolled=$enrolled, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointStatus.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointStatus.kt index 99cb2cd41..6ebb47b8b 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointStatus.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointStatus.kt @@ -26,8 +26,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** True if the instance has an endpoint enrolled. */ fun enrolled(): Optional = Optional.ofNullable(enrolled.getNullable("enrolled")) @@ -54,32 +52,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ResponderEndpointStatus && - this.enrolled == other.enrolled && - this.url == other.url && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - enrolled, - url, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ResponderEndpointStatus{enrolled=$enrolled, url=$url, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -135,4 +107,32 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ResponderEndpointStatus && + this.enrolled == other.enrolled && + this.url == other.url && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + enrolled, + url, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ResponderEndpointStatus{enrolled=$enrolled, url=$url, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/SettlementDetail.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/SettlementDetail.kt index 4184beeae..ce5aa2e96 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/SettlementDetail.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/SettlementDetail.kt @@ -48,8 +48,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The most granular ID the network settles with (e.g., ICA for Mastercard, FTSRE for Visa). */ fun accountToken(): String = accountToken.getRequired("account_token") @@ -227,68 +225,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is SettlementDetail && - this.accountToken == other.accountToken && - this.cardProgramToken == other.cardProgramToken && - this.cardToken == other.cardToken && - this.created == other.created && - this.currency == other.currency && - this.disputesGrossAmount == other.disputesGrossAmount && - this.eventTokens == other.eventTokens && - this.institution == other.institution && - this.interchangeFeeExtendedPrecision == other.interchangeFeeExtendedPrecision && - this.interchangeGrossAmount == other.interchangeGrossAmount && - this.network == other.network && - this.otherFeesDetails == other.otherFeesDetails && - this.otherFeesGrossAmount == other.otherFeesGrossAmount && - this.reportDate == other.reportDate && - this.settlementDate == other.settlementDate && - this.token == other.token && - this.transactionToken == other.transactionToken && - this.transactionsGrossAmount == other.transactionsGrossAmount && - this.type == other.type && - this.updated == other.updated && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountToken, - cardProgramToken, - cardToken, - created, - currency, - disputesGrossAmount, - eventTokens, - institution, - interchangeFeeExtendedPrecision, - interchangeGrossAmount, - network, - otherFeesDetails, - otherFeesGrossAmount, - reportDate, - settlementDate, - token, - transactionToken, - transactionsGrossAmount, - type, - updated, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "SettlementDetail{accountToken=$accountToken, cardProgramToken=$cardProgramToken, cardToken=$cardToken, created=$created, currency=$currency, disputesGrossAmount=$disputesGrossAmount, eventTokens=$eventTokens, institution=$institution, interchangeFeeExtendedPrecision=$interchangeFeeExtendedPrecision, interchangeGrossAmount=$interchangeGrossAmount, network=$network, otherFeesDetails=$otherFeesDetails, otherFeesGrossAmount=$otherFeesGrossAmount, reportDate=$reportDate, settlementDate=$settlementDate, token=$token, transactionToken=$transactionToken, transactionsGrossAmount=$transactionsGrossAmount, type=$type, updated=$updated, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -684,8 +620,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun isa(): Optional = Optional.ofNullable(isa.getNullable("ISA")) @JsonProperty("ISA") @ExcludeMissing fun _isa() = isa @@ -703,26 +637,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is OtherFeesDetails && - this.isa == other.isa && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(isa, additionalProperties) - } - return hashCode - } - - override fun toString() = - "OtherFeesDetails{isa=$isa, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -762,6 +676,28 @@ private constructor( fun build(): OtherFeesDetails = OtherFeesDetails(isa, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is OtherFeesDetails && + this.isa == other.isa && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(isa, additionalProperties) + } + return hashCode + } + + override fun toString() = + "OtherFeesDetails{isa=$isa, additionalProperties=$additionalProperties}" } class Type @@ -862,4 +798,68 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is SettlementDetail && + this.accountToken == other.accountToken && + this.cardProgramToken == other.cardProgramToken && + this.cardToken == other.cardToken && + this.created == other.created && + this.currency == other.currency && + this.disputesGrossAmount == other.disputesGrossAmount && + this.eventTokens == other.eventTokens && + this.institution == other.institution && + this.interchangeFeeExtendedPrecision == other.interchangeFeeExtendedPrecision && + this.interchangeGrossAmount == other.interchangeGrossAmount && + this.network == other.network && + this.otherFeesDetails == other.otherFeesDetails && + this.otherFeesGrossAmount == other.otherFeesGrossAmount && + this.reportDate == other.reportDate && + this.settlementDate == other.settlementDate && + this.token == other.token && + this.transactionToken == other.transactionToken && + this.transactionsGrossAmount == other.transactionsGrossAmount && + this.type == other.type && + this.updated == other.updated && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountToken, + cardProgramToken, + cardToken, + created, + currency, + disputesGrossAmount, + eventTokens, + institution, + interchangeFeeExtendedPrecision, + interchangeGrossAmount, + network, + otherFeesDetails, + otherFeesGrossAmount, + reportDate, + settlementDate, + token, + transactionToken, + transactionsGrossAmount, + type, + updated, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "SettlementDetail{accountToken=$accountToken, cardProgramToken=$cardProgramToken, cardToken=$cardToken, created=$created, currency=$currency, disputesGrossAmount=$disputesGrossAmount, eventTokens=$eventTokens, institution=$institution, interchangeFeeExtendedPrecision=$interchangeFeeExtendedPrecision, interchangeGrossAmount=$interchangeGrossAmount, network=$network, otherFeesDetails=$otherFeesDetails, otherFeesGrossAmount=$otherFeesGrossAmount, reportDate=$reportDate, settlementDate=$settlementDate, token=$token, transactionToken=$transactionToken, transactionsGrossAmount=$transactionsGrossAmount, type=$type, updated=$updated, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/SettlementReport.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/SettlementReport.kt index 5f69049e9..30f70b30a 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/SettlementReport.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/SettlementReport.kt @@ -35,8 +35,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Date and time when the transaction first occurred. UTC time zone. */ fun created(): OffsetDateTime = created.getRequired("created") @@ -184,50 +182,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is SettlementReport && - this.created == other.created && - this.currency == other.currency && - this.details == other.details && - this.disputesGrossAmount == other.disputesGrossAmount && - this.interchangeGrossAmount == other.interchangeGrossAmount && - this.isComplete == other.isComplete && - this.otherFeesGrossAmount == other.otherFeesGrossAmount && - this.reportDate == other.reportDate && - this.settledNetAmount == other.settledNetAmount && - this.transactionsGrossAmount == other.transactionsGrossAmount && - this.updated == other.updated && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - created, - currency, - details, - disputesGrossAmount, - interchangeGrossAmount, - isComplete, - otherFeesGrossAmount, - reportDate, - settledNetAmount, - transactionsGrossAmount, - updated, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "SettlementReport{created=$created, currency=$currency, details=$details, disputesGrossAmount=$disputesGrossAmount, interchangeGrossAmount=$interchangeGrossAmount, isComplete=$isComplete, otherFeesGrossAmount=$otherFeesGrossAmount, reportDate=$reportDate, settledNetAmount=$settledNetAmount, transactionsGrossAmount=$transactionsGrossAmount, updated=$updated, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -447,4 +401,50 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is SettlementReport && + this.created == other.created && + this.currency == other.currency && + this.details == other.details && + this.disputesGrossAmount == other.disputesGrossAmount && + this.interchangeGrossAmount == other.interchangeGrossAmount && + this.isComplete == other.isComplete && + this.otherFeesGrossAmount == other.otherFeesGrossAmount && + this.reportDate == other.reportDate && + this.settledNetAmount == other.settledNetAmount && + this.transactionsGrossAmount == other.transactionsGrossAmount && + this.updated == other.updated && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + created, + currency, + details, + disputesGrossAmount, + interchangeGrossAmount, + isComplete, + otherFeesGrossAmount, + reportDate, + settledNetAmount, + transactionsGrossAmount, + updated, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "SettlementReport{created=$created, currency=$currency, details=$details, disputesGrossAmount=$disputesGrossAmount, interchangeGrossAmount=$interchangeGrossAmount, isComplete=$isComplete, otherFeesGrossAmount=$otherFeesGrossAmount, reportDate=$reportDate, settledNetAmount=$settledNetAmount, transactionsGrossAmount=$transactionsGrossAmount, updated=$updated, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/SettlementSummaryDetails.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/SettlementSummaryDetails.kt index f7f9d4539..d26493cfa 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/SettlementSummaryDetails.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/SettlementSummaryDetails.kt @@ -35,8 +35,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** ISO 4217 alpha 3 code. */ fun currency(): Optional = Optional.ofNullable(currency.getNullable("currency")) @@ -129,44 +127,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is SettlementSummaryDetails && - this.currency == other.currency && - this.disputesGrossAmount == other.disputesGrossAmount && - this.institution == other.institution && - this.interchangeGrossAmount == other.interchangeGrossAmount && - this.network == other.network && - this.otherFeesGrossAmount == other.otherFeesGrossAmount && - this.settledNetAmount == other.settledNetAmount && - this.transactionsGrossAmount == other.transactionsGrossAmount && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - currency, - disputesGrossAmount, - institution, - interchangeGrossAmount, - network, - otherFeesGrossAmount, - settledNetAmount, - transactionsGrossAmount, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "SettlementSummaryDetails{currency=$currency, disputesGrossAmount=$disputesGrossAmount, institution=$institution, interchangeGrossAmount=$interchangeGrossAmount, network=$network, otherFeesGrossAmount=$otherFeesGrossAmount, settledNetAmount=$settledNetAmount, transactionsGrossAmount=$transactionsGrossAmount, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -394,4 +354,44 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is SettlementSummaryDetails && + this.currency == other.currency && + this.disputesGrossAmount == other.disputesGrossAmount && + this.institution == other.institution && + this.interchangeGrossAmount == other.interchangeGrossAmount && + this.network == other.network && + this.otherFeesGrossAmount == other.otherFeesGrossAmount && + this.settledNetAmount == other.settledNetAmount && + this.transactionsGrossAmount == other.transactionsGrossAmount && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + currency, + disputesGrossAmount, + institution, + interchangeGrossAmount, + network, + otherFeesGrossAmount, + settledNetAmount, + transactionsGrossAmount, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "SettlementSummaryDetails{currency=$currency, disputesGrossAmount=$disputesGrossAmount, institution=$institution, interchangeGrossAmount=$interchangeGrossAmount, network=$network, otherFeesGrossAmount=$otherFeesGrossAmount, settledNetAmount=$settledNetAmount, transactionsGrossAmount=$transactionsGrossAmount, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ShippingAddress.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ShippingAddress.kt index 2746a1bb6..d564076ea 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ShippingAddress.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ShippingAddress.kt @@ -35,8 +35,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Valid USPS routable address. */ fun address1(): String = address1.getRequired("address1") @@ -169,50 +167,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ShippingAddress && - this.address1 == other.address1 && - this.address2 == other.address2 && - this.city == other.city && - this.country == other.country && - this.email == other.email && - this.firstName == other.firstName && - this.lastName == other.lastName && - this.line2Text == other.line2Text && - this.phoneNumber == other.phoneNumber && - this.postalCode == other.postalCode && - this.state == other.state && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address1, - address2, - city, - country, - email, - firstName, - lastName, - line2Text, - phoneNumber, - postalCode, - state, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ShippingAddress{address1=$address1, address2=$address2, city=$city, country=$country, email=$email, firstName=$firstName, lastName=$lastName, line2Text=$line2Text, phoneNumber=$phoneNumber, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -409,4 +363,50 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ShippingAddress && + this.address1 == other.address1 && + this.address2 == other.address2 && + this.city == other.city && + this.country == other.country && + this.email == other.email && + this.firstName == other.firstName && + this.lastName == other.lastName && + this.line2Text == other.line2Text && + this.phoneNumber == other.phoneNumber && + this.postalCode == other.postalCode && + this.state == other.state && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address1, + address2, + city, + country, + email, + firstName, + lastName, + line2Text, + phoneNumber, + postalCode, + state, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ShippingAddress{address1=$address1, address2=$address2, city=$city, country=$country, email=$email, firstName=$firstName, lastName=$lastName, line2Text=$line2Text, phoneNumber=$phoneNumber, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Statement.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Statement.kt index b095b0e63..c79ed9aa6 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Statement.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Statement.kt @@ -49,8 +49,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Globally unique identifier for a statement */ fun token(): String = token.getRequired("token") @@ -215,68 +213,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Statement && - this.token == other.token && - this.financialAccountToken == other.financialAccountToken && - this.statementStartDate == other.statementStartDate && - this.statementEndDate == other.statementEndDate && - this.nextStatementEndDate == other.nextStatementEndDate && - this.paymentDueDate == other.paymentDueDate && - this.nextPaymentDueDate == other.nextPaymentDueDate && - this.daysInBillingCycle == other.daysInBillingCycle && - this.creditLimit == other.creditLimit && - this.availableCredit == other.availableCredit && - this.startingBalance == other.startingBalance && - this.endingBalance == other.endingBalance && - this.periodTotals == other.periodTotals && - this.ytdTotals == other.ytdTotals && - this.created == other.created && - this.updated == other.updated && - this.creditProductToken == other.creditProductToken && - this.accountStanding == other.accountStanding && - this.amountDue == other.amountDue && - this.interestDetails == other.interestDetails && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - financialAccountToken, - statementStartDate, - statementEndDate, - nextStatementEndDate, - paymentDueDate, - nextPaymentDueDate, - daysInBillingCycle, - creditLimit, - availableCredit, - startingBalance, - endingBalance, - periodTotals, - ytdTotals, - created, - updated, - creditProductToken, - accountStanding, - amountDue, - interestDetails, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Statement{token=$token, financialAccountToken=$financialAccountToken, statementStartDate=$statementStartDate, statementEndDate=$statementEndDate, nextStatementEndDate=$nextStatementEndDate, paymentDueDate=$paymentDueDate, nextPaymentDueDate=$nextPaymentDueDate, daysInBillingCycle=$daysInBillingCycle, creditLimit=$creditLimit, availableCredit=$availableCredit, startingBalance=$startingBalance, endingBalance=$endingBalance, periodTotals=$periodTotals, ytdTotals=$ytdTotals, created=$created, updated=$updated, creditProductToken=$creditProductToken, accountStanding=$accountStanding, amountDue=$amountDue, interestDetails=$interestDetails, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -580,8 +516,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun periodState(): PeriodState = periodState.getRequired("period_state") /** Current overall period number */ @@ -650,42 +584,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AccountStanding && - this.periodState == other.periodState && - this.periodNumber == other.periodNumber && - this.consecutiveMinimumPaymentsMade == other.consecutiveMinimumPaymentsMade && - this.consecutiveMinimumPaymentsMissed == other.consecutiveMinimumPaymentsMissed && - this.consecutiveFullPaymentsMade == other.consecutiveFullPaymentsMade && - this.daysPastDue == other.daysPastDue && - this.hasGrace == other.hasGrace && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - periodState, - periodNumber, - consecutiveMinimumPaymentsMade, - consecutiveMinimumPaymentsMissed, - consecutiveFullPaymentsMade, - daysPastDue, - hasGrace, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AccountStanding{periodState=$periodState, periodNumber=$periodNumber, consecutiveMinimumPaymentsMade=$consecutiveMinimumPaymentsMade, consecutiveMinimumPaymentsMissed=$consecutiveMinimumPaymentsMissed, consecutiveFullPaymentsMade=$consecutiveFullPaymentsMade, daysPastDue=$daysPastDue, hasGrace=$hasGrace, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -872,6 +770,44 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AccountStanding && + this.periodState == other.periodState && + this.periodNumber == other.periodNumber && + this.consecutiveMinimumPaymentsMade == other.consecutiveMinimumPaymentsMade && + this.consecutiveMinimumPaymentsMissed == other.consecutiveMinimumPaymentsMissed && + this.consecutiveFullPaymentsMade == other.consecutiveFullPaymentsMade && + this.daysPastDue == other.daysPastDue && + this.hasGrace == other.hasGrace && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + periodState, + periodNumber, + consecutiveMinimumPaymentsMade, + consecutiveMinimumPaymentsMissed, + consecutiveFullPaymentsMade, + daysPastDue, + hasGrace, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AccountStanding{periodState=$periodState, periodNumber=$periodNumber, consecutiveMinimumPaymentsMade=$consecutiveMinimumPaymentsMade, consecutiveMinimumPaymentsMissed=$consecutiveMinimumPaymentsMissed, consecutiveFullPaymentsMade=$consecutiveFullPaymentsMade, daysPastDue=$daysPastDue, hasGrace=$hasGrace, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = AmountDue.Builder::class) @@ -885,8 +821,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Payment due at the end of the billing period in cents. Negative amount indicates * something is owed. If the amount owed is positive there was a net credit. If @@ -923,32 +857,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AmountDue && - this.amount == other.amount && - this.pastDue == other.pastDue && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - pastDue, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AmountDue{amount=$amount, pastDue=$pastDue, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1014,6 +922,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AmountDue && + this.amount == other.amount && + this.pastDue == other.pastDue && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + pastDue, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AmountDue{amount=$amount, pastDue=$pastDue, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = StatementTotals.Builder::class) @@ -1032,8 +968,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Any funds transfers which affective the balance in cents */ fun payments(): Long = payments.getRequired("payments") @@ -1101,42 +1035,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StatementTotals && - this.payments == other.payments && - this.purchases == other.purchases && - this.fees == other.fees && - this.credits == other.credits && - this.interest == other.interest && - this.cashAdvances == other.cashAdvances && - this.balanceTransfers == other.balanceTransfers && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - payments, - purchases, - fees, - credits, - interest, - cashAdvances, - balanceTransfers, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StatementTotals{payments=$payments, purchases=$purchases, fees=$fees, credits=$credits, interest=$interest, cashAdvances=$cashAdvances, balanceTransfers=$balanceTransfers, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1258,6 +1156,44 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StatementTotals && + this.payments == other.payments && + this.purchases == other.purchases && + this.fees == other.fees && + this.credits == other.credits && + this.interest == other.interest && + this.cashAdvances == other.cashAdvances && + this.balanceTransfers == other.balanceTransfers && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + payments, + purchases, + fees, + credits, + interest, + cashAdvances, + balanceTransfers, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "StatementTotals{payments=$payments, purchases=$purchases, fees=$fees, credits=$credits, interest=$interest, cashAdvances=$cashAdvances, balanceTransfers=$balanceTransfers, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = InterestDetails.Builder::class) @@ -1276,8 +1212,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun primeRate(): Optional = Optional.ofNullable(primeRate.getNullable("prime_rate")) fun interestCalculationMethod(): InterestCalculationMethod = @@ -1340,42 +1274,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is InterestDetails && - this.primeRate == other.primeRate && - this.interestCalculationMethod == other.interestCalculationMethod && - this.effectiveApr == other.effectiveApr && - this.interestForPeriod == other.interestForPeriod && - this.dailyBalanceAmounts == other.dailyBalanceAmounts && - this.minimumInterestCharged == other.minimumInterestCharged && - this.actualInterestCharged == other.actualInterestCharged && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - primeRate, - interestCalculationMethod, - effectiveApr, - interestForPeriod, - dailyBalanceAmounts, - minimumInterestCharged, - actualInterestCharged, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "InterestDetails{primeRate=$primeRate, interestCalculationMethod=$interestCalculationMethod, effectiveApr=$effectiveApr, interestForPeriod=$interestForPeriod, dailyBalanceAmounts=$dailyBalanceAmounts, minimumInterestCharged=$minimumInterestCharged, actualInterestCharged=$actualInterestCharged, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1504,8 +1402,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun purchases(): String = purchases.getRequired("purchases") fun cashAdvances(): String = cashAdvances.getRequired("cash_advances") @@ -1535,34 +1431,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CategoryDetails && - this.purchases == other.purchases && - this.cashAdvances == other.cashAdvances && - this.balanceTransfers == other.balanceTransfers && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - purchases, - cashAdvances, - balanceTransfers, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CategoryDetails{purchases=$purchases, cashAdvances=$cashAdvances, balanceTransfers=$balanceTransfers, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1629,6 +1497,36 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CategoryDetails && + this.purchases == other.purchases && + this.cashAdvances == other.cashAdvances && + this.balanceTransfers == other.balanceTransfers && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + purchases, + cashAdvances, + balanceTransfers, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CategoryDetails{purchases=$purchases, cashAdvances=$cashAdvances, balanceTransfers=$balanceTransfers, additionalProperties=$additionalProperties}" } class InterestCalculationMethod @@ -1691,5 +1589,107 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is InterestDetails && + this.primeRate == other.primeRate && + this.interestCalculationMethod == other.interestCalculationMethod && + this.effectiveApr == other.effectiveApr && + this.interestForPeriod == other.interestForPeriod && + this.dailyBalanceAmounts == other.dailyBalanceAmounts && + this.minimumInterestCharged == other.minimumInterestCharged && + this.actualInterestCharged == other.actualInterestCharged && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + primeRate, + interestCalculationMethod, + effectiveApr, + interestForPeriod, + dailyBalanceAmounts, + minimumInterestCharged, + actualInterestCharged, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "InterestDetails{primeRate=$primeRate, interestCalculationMethod=$interestCalculationMethod, effectiveApr=$effectiveApr, interestForPeriod=$interestForPeriod, dailyBalanceAmounts=$dailyBalanceAmounts, minimumInterestCharged=$minimumInterestCharged, actualInterestCharged=$actualInterestCharged, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Statement && + this.token == other.token && + this.financialAccountToken == other.financialAccountToken && + this.statementStartDate == other.statementStartDate && + this.statementEndDate == other.statementEndDate && + this.nextStatementEndDate == other.nextStatementEndDate && + this.paymentDueDate == other.paymentDueDate && + this.nextPaymentDueDate == other.nextPaymentDueDate && + this.daysInBillingCycle == other.daysInBillingCycle && + this.creditLimit == other.creditLimit && + this.availableCredit == other.availableCredit && + this.startingBalance == other.startingBalance && + this.endingBalance == other.endingBalance && + this.periodTotals == other.periodTotals && + this.ytdTotals == other.ytdTotals && + this.created == other.created && + this.updated == other.updated && + this.creditProductToken == other.creditProductToken && + this.accountStanding == other.accountStanding && + this.amountDue == other.amountDue && + this.interestDetails == other.interestDetails && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + financialAccountToken, + statementStartDate, + statementEndDate, + nextStatementEndDate, + paymentDueDate, + nextPaymentDueDate, + daysInBillingCycle, + creditLimit, + availableCredit, + startingBalance, + endingBalance, + periodTotals, + ytdTotals, + created, + updated, + creditProductToken, + accountStanding, + amountDue, + interestDetails, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Statement{token=$token, financialAccountToken=$financialAccountToken, statementStartDate=$statementStartDate, statementEndDate=$statementEndDate, nextStatementEndDate=$nextStatementEndDate, paymentDueDate=$paymentDueDate, nextPaymentDueDate=$nextPaymentDueDate, daysInBillingCycle=$daysInBillingCycle, creditLimit=$creditLimit, availableCredit=$availableCredit, startingBalance=$startingBalance, endingBalance=$endingBalance, periodTotals=$periodTotals, ytdTotals=$ytdTotals, created=$created, updated=$updated, creditProductToken=$creditProductToken, accountStanding=$accountStanding, amountDue=$amountDue, interestDetails=$interestDetails, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/StatementLineItems.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/StatementLineItems.kt index 914156ac9..276635f4b 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/StatementLineItems.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/StatementLineItems.kt @@ -31,8 +31,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun data(): List = data.getRequired("data") fun hasMore(): Boolean = hasMore.getRequired("has_more") @@ -55,32 +53,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StatementLineItems && - this.data == other.data && - this.hasMore == other.hasMore && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - data, - hasMore, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StatementLineItems{data=$data, hasMore=$hasMore, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -154,8 +126,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Globally unique identifier for a Statement Line Item */ fun token(): String = token.getRequired("token") @@ -256,52 +226,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StatementLineItemResponse && - this.token == other.token && - this.financialAccountToken == other.financialAccountToken && - this.cardToken == other.cardToken && - this.financialTransactionToken == other.financialTransactionToken && - this.financialTransactionEventToken == other.financialTransactionEventToken && - this.category == other.category && - this.eventType == other.eventType && - this.effectiveDate == other.effectiveDate && - this.descriptor == other.descriptor && - this.amount == other.amount && - this.currency == other.currency && - this.created == other.created && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - financialAccountToken, - cardToken, - financialTransactionToken, - financialTransactionEventToken, - category, - eventType, - effectiveDate, - descriptor, - amount, - currency, - created, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StatementLineItemResponse{token=$token, financialAccountToken=$financialAccountToken, cardToken=$cardToken, financialTransactionToken=$financialTransactionToken, financialTransactionEventToken=$financialTransactionEventToken, category=$category, eventType=$eventType, effectiveDate=$effectiveDate, descriptor=$descriptor, amount=$amount, currency=$currency, created=$created, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1024,5 +948,81 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StatementLineItemResponse && + this.token == other.token && + this.financialAccountToken == other.financialAccountToken && + this.cardToken == other.cardToken && + this.financialTransactionToken == other.financialTransactionToken && + this.financialTransactionEventToken == other.financialTransactionEventToken && + this.category == other.category && + this.eventType == other.eventType && + this.effectiveDate == other.effectiveDate && + this.descriptor == other.descriptor && + this.amount == other.amount && + this.currency == other.currency && + this.created == other.created && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + financialAccountToken, + cardToken, + financialTransactionToken, + financialTransactionEventToken, + category, + eventType, + effectiveDate, + descriptor, + amount, + currency, + created, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "StatementLineItemResponse{token=$token, financialAccountToken=$financialAccountToken, cardToken=$cardToken, financialTransactionToken=$financialTransactionToken, financialTransactionEventToken=$financialTransactionEventToken, category=$category, eventType=$eventType, effectiveDate=$effectiveDate, descriptor=$descriptor, amount=$amount, currency=$currency, created=$created, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StatementLineItems && + this.data == other.data && + this.hasMore == other.hasMore && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + data, + hasMore, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "StatementLineItems{data=$data, hasMore=$hasMore, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Statements.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Statements.kt index 5d612ee76..58b004408 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Statements.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Statements.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun data(): List = data.getRequired("data") fun hasMore(): Boolean = hasMore.getRequired("has_more") @@ -49,32 +47,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Statements && - this.data == other.data && - this.hasMore == other.hasMore && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - data, - hasMore, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Statements{data=$data, hasMore=$hasMore, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -126,4 +98,32 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Statements && + this.data == other.data && + this.hasMore == other.hasMore && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + data, + hasMore, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Statements{data=$data, hasMore=$hasMore, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/SubscriptionRetrieveSecretResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/SubscriptionRetrieveSecretResponse.kt index 6c786f67c..113edaa42 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/SubscriptionRetrieveSecretResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/SubscriptionRetrieveSecretResponse.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The secret for the event subscription. */ fun secret(): Optional = Optional.ofNullable(secret.getNullable("secret")) @@ -46,26 +44,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is SubscriptionRetrieveSecretResponse && - this.secret == other.secret && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(secret, additionalProperties) - } - return hashCode - } - - override fun toString() = - "SubscriptionRetrieveSecretResponse{secret=$secret, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -108,4 +86,26 @@ private constructor( fun build(): SubscriptionRetrieveSecretResponse = SubscriptionRetrieveSecretResponse(secret, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is SubscriptionRetrieveSecretResponse && + this.secret == other.secret && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(secret, additionalProperties) + } + return hashCode + } + + override fun toString() = + "SubscriptionRetrieveSecretResponse{secret=$secret, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ThreeDSAuthenticationSimulateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ThreeDSAuthenticationSimulateParams.kt index d3ec385a0..f17f226a3 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ThreeDSAuthenticationSimulateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ThreeDSAuthenticationSimulateParams.kt @@ -53,8 +53,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - @JsonProperty("merchant") fun merchant(): Merchant? = merchant /** Sixteen digit card number. */ @@ -68,34 +66,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ThreeDSAuthenticationSimulateBody && - this.merchant == other.merchant && - this.pan == other.pan && - this.transaction == other.transaction && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - merchant, - pan, - transaction, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ThreeDSAuthenticationSimulateBody{merchant=$merchant, pan=$pan, transaction=$transaction, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -149,6 +119,36 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ThreeDSAuthenticationSimulateBody && + this.merchant == other.merchant && + this.pan == other.pan && + this.transaction == other.transaction && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + merchant, + pan, + transaction, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ThreeDSAuthenticationSimulateBody{merchant=$merchant, pan=$pan, transaction=$transaction, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams @@ -297,8 +297,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Country of the address provided by the cardholder in ISO 3166-1 alpha-3 format (e.g. USA) */ @@ -326,36 +324,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Merchant && - this.country == other.country && - this.id == other.id && - this.mcc == other.mcc && - this.name == other.name && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - country, - id, - mcc, - name, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Merchant{country=$country, id=$id, mcc=$mcc, name=$name, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -423,6 +391,38 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Merchant && + this.country == other.country && + this.id == other.id && + this.mcc == other.mcc && + this.name == other.name && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + country, + id, + mcc, + name, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Merchant{country=$country, id=$id, mcc=$mcc, name=$name, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Transaction.Builder::class) @@ -434,8 +434,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Amount (in cents) to authenticate. */ @JsonProperty("amount") fun amount(): Long? = amount @@ -448,32 +446,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Transaction && - this.amount == other.amount && - this.currency == other.currency && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - currency, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Transaction{amount=$amount, currency=$currency, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -520,5 +492,33 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Transaction && + this.amount == other.amount && + this.currency == other.currency && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + currency, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Transaction{amount=$amount, currency=$currency, additionalProperties=$additionalProperties}" } } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ThreeDSDecisioningChallengeResponseParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ThreeDSDecisioningChallengeResponseParams.kt index d257ceac5..379a48e3e 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ThreeDSDecisioningChallengeResponseParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ThreeDSDecisioningChallengeResponseParams.kt @@ -52,8 +52,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Globally unique identifier for the 3DS authentication. This token is sent as part of the * initial 3DS Decisioning Request and as part of the 3DS Challenge Event in the @@ -71,32 +69,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ThreeDSDecisioningChallengeResponseBody && - this.token == other.token && - this.challengeResponse == other.challengeResponse && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - challengeResponse, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ThreeDSDecisioningChallengeResponseBody{token=$token, challengeResponse=$challengeResponse, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -153,6 +125,34 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ThreeDSDecisioningChallengeResponseBody && + this.token == other.token && + this.challengeResponse == other.challengeResponse && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + challengeResponse, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ThreeDSDecisioningChallengeResponseBody{token=$token, challengeResponse=$challengeResponse, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Tokenization.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Tokenization.kt index dc157f572..58b8bd0ba 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Tokenization.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Tokenization.kt @@ -39,8 +39,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The account token associated with the card being tokenized. */ fun accountToken(): String = accountToken.getRequired("account_token") @@ -150,50 +148,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Tokenization && - this.accountToken == other.accountToken && - this.cardToken == other.cardToken && - this.createdAt == other.createdAt && - this.digitalCardArtToken == other.digitalCardArtToken && - this.events == other.events && - this.status == other.status && - this.token == other.token && - this.tokenRequestorName == other.tokenRequestorName && - this.tokenUniqueReference == other.tokenUniqueReference && - this.tokenizationChannel == other.tokenizationChannel && - this.updatedAt == other.updatedAt && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - accountToken, - cardToken, - createdAt, - digitalCardArtToken, - events, - status, - token, - tokenRequestorName, - tokenUniqueReference, - tokenizationChannel, - updatedAt, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Tokenization{accountToken=$accountToken, cardToken=$cardToken, createdAt=$createdAt, digitalCardArtToken=$digitalCardArtToken, events=$events, status=$status, token=$token, tokenRequestorName=$tokenRequestorName, tokenUniqueReference=$tokenUniqueReference, tokenizationChannel=$tokenizationChannel, updatedAt=$updatedAt, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -641,8 +595,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Date and time when the tokenization event first occurred. UTC time zone. */ fun createdAt(): Optional = Optional.ofNullable(createdAt.getNullable("created_at")) @@ -684,36 +636,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TokenizationEvent && - this.createdAt == other.createdAt && - this.result == other.result && - this.token == other.token && - this.type == other.type && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - createdAt, - result, - token, - type, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TokenizationEvent{createdAt=$createdAt, result=$result, token=$token, type=$type, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -986,5 +908,83 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TokenizationEvent && + this.createdAt == other.createdAt && + this.result == other.result && + this.token == other.token && + this.type == other.type && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + createdAt, + result, + token, + type, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TokenizationEvent{createdAt=$createdAt, result=$result, token=$token, type=$type, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Tokenization && + this.accountToken == other.accountToken && + this.cardToken == other.cardToken && + this.createdAt == other.createdAt && + this.digitalCardArtToken == other.digitalCardArtToken && + this.events == other.events && + this.status == other.status && + this.token == other.token && + this.tokenRequestorName == other.tokenRequestorName && + this.tokenUniqueReference == other.tokenUniqueReference && + this.tokenizationChannel == other.tokenizationChannel && + this.updatedAt == other.updatedAt && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + accountToken, + cardToken, + createdAt, + digitalCardArtToken, + events, + status, + token, + tokenRequestorName, + tokenUniqueReference, + tokenizationChannel, + updatedAt, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Tokenization{accountToken=$accountToken, cardToken=$cardToken, createdAt=$createdAt, digitalCardArtToken=$digitalCardArtToken, events=$events, status=$status, token=$token, tokenRequestorName=$tokenRequestorName, tokenUniqueReference=$tokenUniqueReference, tokenizationChannel=$tokenizationChannel, updatedAt=$updatedAt, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationDecisioningRotateSecretResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationDecisioningRotateSecretResponse.kt index 5d2803f30..1178c4e23 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationDecisioningRotateSecretResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationDecisioningRotateSecretResponse.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The new Tokenization Decisioning HMAC secret */ fun secret(): Optional = Optional.ofNullable(secret.getNullable("secret")) @@ -46,26 +44,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TokenizationDecisioningRotateSecretResponse && - this.secret == other.secret && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(secret, additionalProperties) - } - return hashCode - } - - override fun toString() = - "TokenizationDecisioningRotateSecretResponse{secret=$secret, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -112,4 +90,26 @@ private constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TokenizationDecisioningRotateSecretResponse && + this.secret == other.secret && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(secret, additionalProperties) + } + return hashCode + } + + override fun toString() = + "TokenizationDecisioningRotateSecretResponse{secret=$secret, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationResendActivationCodeParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationResendActivationCodeParams.kt index e0fc9735b..c1fb53e3e 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationResendActivationCodeParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationResendActivationCodeParams.kt @@ -56,8 +56,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * The communication method that the user has selected to use to receive the authentication * code. Supported Values: Sms = "TEXT_TO_CARDHOLDER_NUMBER". Email = @@ -72,26 +70,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TokenizationResendActivationCodeBody && - this.activationMethodType == other.activationMethodType && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(activationMethodType, additionalProperties) - } - return hashCode - } - - override fun toString() = - "TokenizationResendActivationCodeBody{activationMethodType=$activationMethodType, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -141,6 +119,28 @@ constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TokenizationResendActivationCodeBody && + this.activationMethodType == other.activationMethodType && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(activationMethodType, additionalProperties) + } + return hashCode + } + + override fun toString() = + "TokenizationResendActivationCodeBody{activationMethodType=$activationMethodType, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationRetrieveResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationRetrieveResponse.kt index d09d890f7..d6f374b27 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationRetrieveResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationRetrieveResponse.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun data(): Optional = Optional.ofNullable(data.getNullable("data")) @JsonProperty("data") @ExcludeMissing fun _data() = data @@ -44,26 +42,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TokenizationRetrieveResponse && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(data, additionalProperties) - } - return hashCode - } - - override fun toString() = - "TokenizationRetrieveResponse{data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -103,4 +81,26 @@ private constructor( fun build(): TokenizationRetrieveResponse = TokenizationRetrieveResponse(data, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TokenizationRetrieveResponse && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(data, additionalProperties) + } + return hashCode + } + + override fun toString() = + "TokenizationRetrieveResponse{data=$data, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationSecret.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationSecret.kt index 197513b95..3cc3d6435 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationSecret.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationSecret.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The Tokenization Decisioning HMAC secret */ fun secret(): Optional = Optional.ofNullable(secret.getNullable("secret")) @@ -46,26 +44,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TokenizationSecret && - this.secret == other.secret && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(secret, additionalProperties) - } - return hashCode - } - - override fun toString() = - "TokenizationSecret{secret=$secret, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -107,4 +85,26 @@ private constructor( fun build(): TokenizationSecret = TokenizationSecret(secret, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TokenizationSecret && + this.secret == other.secret && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(secret, additionalProperties) + } + return hashCode + } + + override fun toString() = + "TokenizationSecret{secret=$secret, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationSimulateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationSimulateParams.kt index d5804d249..ae65de830 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationSimulateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationSimulateParams.kt @@ -84,8 +84,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** The three digit cvv for the card. */ @JsonProperty("cvv") fun cvv(): String? = cvv @@ -127,44 +125,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TokenizationSimulateBody && - this.cvv == other.cvv && - this.expirationDate == other.expirationDate && - this.pan == other.pan && - this.tokenizationSource == other.tokenizationSource && - this.accountScore == other.accountScore && - this.deviceScore == other.deviceScore && - this.entity == other.entity && - this.walletRecommendedDecision == other.walletRecommendedDecision && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - cvv, - expirationDate, - pan, - tokenizationSource, - accountScore, - deviceScore, - entity, - walletRecommendedDecision, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TokenizationSimulateBody{cvv=$cvv, expirationDate=$expirationDate, pan=$pan, tokenizationSource=$tokenizationSource, accountScore=$accountScore, deviceScore=$deviceScore, entity=$entity, walletRecommendedDecision=$walletRecommendedDecision, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -269,6 +229,46 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TokenizationSimulateBody && + this.cvv == other.cvv && + this.expirationDate == other.expirationDate && + this.pan == other.pan && + this.tokenizationSource == other.tokenizationSource && + this.accountScore == other.accountScore && + this.deviceScore == other.deviceScore && + this.entity == other.entity && + this.walletRecommendedDecision == other.walletRecommendedDecision && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + cvv, + expirationDate, + pan, + tokenizationSource, + accountScore, + deviceScore, + entity, + walletRecommendedDecision, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TokenizationSimulateBody{cvv=$cvv, expirationDate=$expirationDate, pan=$pan, tokenizationSource=$tokenizationSource, accountScore=$accountScore, deviceScore=$deviceScore, entity=$entity, walletRecommendedDecision=$walletRecommendedDecision, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationSimulateResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationSimulateResponse.kt index 812289492..705e7b790 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationSimulateResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationSimulateResponse.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun data(): Optional> = Optional.ofNullable(data.getNullable("data")) @JsonProperty("data") @ExcludeMissing fun _data() = data @@ -44,26 +42,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TokenizationSimulateResponse && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(data, additionalProperties) - } - return hashCode - } - - override fun toString() = - "TokenizationSimulateResponse{data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -106,4 +84,26 @@ private constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TokenizationSimulateResponse && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(data, additionalProperties) + } + return hashCode + } + + override fun toString() = + "TokenizationSimulateResponse{data=$data, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationUpdateDigitalCardArtParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationUpdateDigitalCardArtParams.kt index c9d82ca9c..498e3af20 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationUpdateDigitalCardArtParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationUpdateDigitalCardArtParams.kt @@ -51,8 +51,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Specifies the digital card art to be displayed in the user’s digital wallet for a * tokenization. This artwork must be approved by the network and configured by Lithic to @@ -68,26 +66,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TokenizationUpdateDigitalCardArtBody && - this.digitalCardArtToken == other.digitalCardArtToken && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(digitalCardArtToken, additionalProperties) - } - return hashCode - } - - override fun toString() = - "TokenizationUpdateDigitalCardArtBody{digitalCardArtToken=$digitalCardArtToken, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -137,6 +115,28 @@ constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TokenizationUpdateDigitalCardArtBody && + this.digitalCardArtToken == other.digitalCardArtToken && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(digitalCardArtToken, additionalProperties) + } + return hashCode + } + + override fun toString() = + "TokenizationUpdateDigitalCardArtBody{digitalCardArtToken=$digitalCardArtToken, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationUpdateDigitalCardArtResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationUpdateDigitalCardArtResponse.kt index 2ab40c2c8..b29db2a47 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationUpdateDigitalCardArtResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TokenizationUpdateDigitalCardArtResponse.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun data(): Optional = Optional.ofNullable(data.getNullable("data")) @JsonProperty("data") @ExcludeMissing fun _data() = data @@ -44,26 +42,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TokenizationUpdateDigitalCardArtResponse && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(data, additionalProperties) - } - return hashCode - } - - override fun toString() = - "TokenizationUpdateDigitalCardArtResponse{data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -105,4 +83,26 @@ private constructor( fun build(): TokenizationUpdateDigitalCardArtResponse = TokenizationUpdateDigitalCardArtResponse(data, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TokenizationUpdateDigitalCardArtResponse && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(data, additionalProperties) + } + return hashCode + } + + override fun toString() = + "TokenizationUpdateDigitalCardArtResponse{data=$data, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Transaction.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Transaction.kt index 4a41d2a8f..43ed7084f 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Transaction.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Transaction.kt @@ -52,8 +52,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Fee assessed by the merchant and paid for by the cardholder in the smallest unit of the * currency. Will be zero if no fee is assessed. Rebates may be transmitted as a negative value @@ -327,76 +325,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Transaction && - this.acquirerFee == other.acquirerFee && - this.acquirerReferenceNumber == other.acquirerReferenceNumber && - this.amount == other.amount && - this.amounts == other.amounts && - this.authorizationAmount == other.authorizationAmount && - this.authorizationCode == other.authorizationCode && - this.avs == other.avs && - this.cardToken == other.cardToken && - this.cardholderAuthentication == other.cardholderAuthentication && - this.created == other.created && - this.events == other.events && - this.merchant == other.merchant && - this.merchantAmount == other.merchantAmount && - this.merchantAuthorizationAmount == other.merchantAuthorizationAmount && - this.merchantCurrency == other.merchantCurrency && - this.network == other.network && - this.networkRiskScore == other.networkRiskScore && - this.pos == other.pos && - this.result == other.result && - this.settledAmount == other.settledAmount && - this.status == other.status && - this.token == other.token && - this.tokenInfo == other.tokenInfo && - this.updated == other.updated && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - acquirerFee, - acquirerReferenceNumber, - amount, - amounts, - authorizationAmount, - authorizationCode, - avs, - cardToken, - cardholderAuthentication, - created, - events, - merchant, - merchantAmount, - merchantAuthorizationAmount, - merchantCurrency, - network, - networkRiskScore, - pos, - result, - settledAmount, - status, - token, - tokenInfo, - updated, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Transaction{acquirerFee=$acquirerFee, acquirerReferenceNumber=$acquirerReferenceNumber, amount=$amount, amounts=$amounts, authorizationAmount=$authorizationAmount, authorizationCode=$authorizationCode, avs=$avs, cardToken=$cardToken, cardholderAuthentication=$cardholderAuthentication, created=$created, events=$events, merchant=$merchant, merchantAmount=$merchantAmount, merchantAuthorizationAmount=$merchantAuthorizationAmount, merchantCurrency=$merchantCurrency, network=$network, networkRiskScore=$networkRiskScore, pos=$pos, result=$result, settledAmount=$settledAmount, status=$status, token=$token, tokenInfo=$tokenInfo, updated=$updated, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -809,8 +737,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun cardholder(): CardholderAggregateAmount = cardholder.getRequired("cardholder") fun hold(): HoldAggregateAmount = hold.getRequired("hold") @@ -843,36 +769,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionAggregateAmounts && - this.cardholder == other.cardholder && - this.hold == other.hold && - this.merchant == other.merchant && - this.settlement == other.settlement && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - cardholder, - hold, - merchant, - settlement, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TransactionAggregateAmounts{cardholder=$cardholder, hold=$hold, merchant=$merchant, settlement=$settlement, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -963,8 +859,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun amount(): Long = amount.getRequired("amount") fun conversionRate(): String = conversionRate.getRequired("conversion_rate") @@ -1002,34 +896,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CardholderAggregateAmount && - this.amount == other.amount && - this.conversionRate == other.conversionRate && - this.currency == other.currency && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - conversionRate, - currency, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CardholderAggregateAmount{amount=$amount, conversionRate=$conversionRate, currency=$currency, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1104,6 +970,36 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CardholderAggregateAmount && + this.amount == other.amount && + this.conversionRate == other.conversionRate && + this.currency == other.currency && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + conversionRate, + currency, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CardholderAggregateAmount{amount=$amount, conversionRate=$conversionRate, currency=$currency, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = HoldAggregateAmount.Builder::class) @@ -1117,8 +1013,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun amount(): Long = amount.getRequired("amount") /** @@ -1151,32 +1045,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is HoldAggregateAmount && - this.amount == other.amount && - this.currency == other.currency && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - currency, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "HoldAggregateAmount{amount=$amount, currency=$currency, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1239,6 +1107,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is HoldAggregateAmount && + this.amount == other.amount && + this.currency == other.currency && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + currency, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "HoldAggregateAmount{amount=$amount, currency=$currency, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = MerchantAggregateAmount.Builder::class) @@ -1252,8 +1148,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun amount(): Long = amount.getRequired("amount") /** @@ -1286,32 +1180,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is MerchantAggregateAmount && - this.amount == other.amount && - this.currency == other.currency && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - currency, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "MerchantAggregateAmount{amount=$amount, currency=$currency, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1374,21 +1242,47 @@ private constructor( additionalProperties.toUnmodifiable(), ) } - } - @JsonDeserialize(builder = SettlementAggregateAmount.Builder::class) - @NoAutoDetect - class SettlementAggregateAmount - private constructor( - private val amount: JsonField, - private val currency: JsonField, - private val additionalProperties: Map, - ) { + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } - private var validated: Boolean = false + return other is MerchantAggregateAmount && + this.amount == other.amount && + this.currency == other.currency && + this.additionalProperties == other.additionalProperties + } private var hashCode: Int = 0 + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + currency, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "MerchantAggregateAmount{amount=$amount, currency=$currency, additionalProperties=$additionalProperties}" + } + + @JsonDeserialize(builder = SettlementAggregateAmount.Builder::class) + @NoAutoDetect + class SettlementAggregateAmount + private constructor( + private val amount: JsonField, + private val currency: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + fun amount(): Long = amount.getRequired("amount") /** @@ -1421,32 +1315,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is SettlementAggregateAmount && - this.amount == other.amount && - this.currency == other.currency && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - currency, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "SettlementAggregateAmount{amount=$amount, currency=$currency, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1509,7 +1377,67 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is SettlementAggregateAmount && + this.amount == other.amount && + this.currency == other.currency && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + currency, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "SettlementAggregateAmount{amount=$amount, currency=$currency, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionAggregateAmounts && + this.cardholder == other.cardholder && + this.hold == other.hold && + this.merchant == other.merchant && + this.settlement == other.settlement && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + cardholder, + hold, + merchant, + settlement, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TransactionAggregateAmounts{cardholder=$cardholder, hold=$hold, merchant=$merchant, settlement=$settlement, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Avs.Builder::class) @@ -1523,8 +1451,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Cardholder address */ fun address(): Optional = Optional.ofNullable(address.getNullable("address")) @@ -1551,32 +1477,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Avs && - this.address == other.address && - this.zipcode == other.zipcode && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - address, - zipcode, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Avs{address=$address, zipcode=$zipcode, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1632,6 +1532,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Avs && + this.address == other.address && + this.zipcode == other.zipcode && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + address, + zipcode, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Avs{address=$address, zipcode=$zipcode, additionalProperties=$additionalProperties}" } /** @@ -1655,8 +1583,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Amount of the transaction event (in cents), including any acquirer fees. */ fun amount(): Long = amount.getRequired("amount") @@ -1813,44 +1739,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionEvent && - this.amount == other.amount && - this.amounts == other.amounts && - this.created == other.created && - this.detailedResults == other.detailedResults && - this.effectivePolarity == other.effectivePolarity && - this.result == other.result && - this.token == other.token && - this.type == other.type && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - amounts, - created, - detailedResults, - effectivePolarity, - result, - token, - type, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TransactionEvent{amount=$amount, amounts=$amounts, created=$created, detailedResults=$detailedResults, effectivePolarity=$effectivePolarity, result=$result, token=$token, type=$type, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2079,8 +1967,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun cardholder(): CardholderEventAmounts = cardholder.getRequired("cardholder") fun merchant(): MerchantEventAmounts = merchant.getRequired("merchant") @@ -2109,34 +1995,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionEventAmounts && - this.cardholder == other.cardholder && - this.merchant == other.merchant && - this.settlement == other.settlement && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - cardholder, - merchant, - settlement, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TransactionEventAmounts{cardholder=$cardholder, merchant=$merchant, settlement=$settlement, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2219,8 +2077,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun amount(): Long = amount.getRequired("amount") fun conversionRate(): String = conversionRate.getRequired("conversion_rate") @@ -2258,35 +2114,7 @@ private constructor( } } - fun toBuilder() = Builder().from(this) - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CardholderEventAmounts && - this.amount == other.amount && - this.conversionRate == other.conversionRate && - this.currency == other.currency && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - conversionRate, - currency, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CardholderEventAmounts{amount=$amount, conversionRate=$conversionRate, currency=$currency, additionalProperties=$additionalProperties}" + fun toBuilder() = Builder().from(this) companion object { @@ -2362,6 +2190,36 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CardholderEventAmounts && + this.amount == other.amount && + this.conversionRate == other.conversionRate && + this.currency == other.currency && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + conversionRate, + currency, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CardholderEventAmounts{amount=$amount, conversionRate=$conversionRate, currency=$currency, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = MerchantEventAmounts.Builder::class) @@ -2375,8 +2233,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun amount(): Long = amount.getRequired("amount") /** @@ -2409,32 +2265,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is MerchantEventAmounts && - this.amount == other.amount && - this.currency == other.currency && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - currency, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "MerchantEventAmounts{amount=$amount, currency=$currency, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2497,6 +2327,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is MerchantEventAmounts && + this.amount == other.amount && + this.currency == other.currency && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + currency, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "MerchantEventAmounts{amount=$amount, currency=$currency, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = SettlementEventAmounts.Builder::class) @@ -2511,8 +2369,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun amount(): Long = amount.getRequired("amount") fun conversionRate(): String = conversionRate.getRequired("conversion_rate") @@ -2552,34 +2408,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is SettlementEventAmounts && - this.amount == other.amount && - this.conversionRate == other.conversionRate && - this.currency == other.currency && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - conversionRate, - currency, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "SettlementEventAmounts{amount=$amount, conversionRate=$conversionRate, currency=$currency, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2654,7 +2482,67 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is SettlementEventAmounts && + this.amount == other.amount && + this.conversionRate == other.conversionRate && + this.currency == other.currency && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + conversionRate, + currency, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "SettlementEventAmounts{amount=$amount, conversionRate=$conversionRate, currency=$currency, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionEventAmounts && + this.cardholder == other.cardholder && + this.merchant == other.merchant && + this.settlement == other.settlement && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + cardholder, + merchant, + settlement, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "TransactionEventAmounts{cardholder=$cardholder, merchant=$merchant, settlement=$settlement, additionalProperties=$additionalProperties}" } class DetailedResult @@ -3422,6 +3310,46 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionEvent && + this.amount == other.amount && + this.amounts == other.amounts && + this.created == other.created && + this.detailedResults == other.detailedResults && + this.effectivePolarity == other.effectivePolarity && + this.result == other.result && + this.token == other.token && + this.type == other.type && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + amounts, + created, + detailedResults, + effectivePolarity, + result, + token, + type, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TransactionEvent{amount=$amount, amounts=$amounts, created=$created, detailedResults=$detailedResults, effectivePolarity=$effectivePolarity, result=$result, token=$token, type=$type, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Merchant.Builder::class) @@ -3439,8 +3367,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Unique identifier to identify the payment card acceptor. */ fun acceptorId(): Optional = Optional.ofNullable(acceptorId.getNullable("acceptor_id")) @@ -3483,59 +3409,25 @@ private constructor( @JsonProperty("mcc") @ExcludeMissing fun _mcc() = mcc /** Geographic state of card acceptor (see ISO 8583 specs). */ - @JsonProperty("state") @ExcludeMissing fun _state() = state - - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties - - fun validate(): Merchant = apply { - if (!validated) { - acceptorId() - city() - country() - descriptor() - mcc() - state() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Merchant && - this.acceptorId == other.acceptorId && - this.city == other.city && - this.country == other.country && - this.descriptor == other.descriptor && - this.mcc == other.mcc && - this.state == other.state && - this.additionalProperties == other.additionalProperties - } + @JsonProperty("state") @ExcludeMissing fun _state() = state - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - acceptorId, - city, - country, - descriptor, - mcc, - state, - additionalProperties, - ) + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): Merchant = apply { + if (!validated) { + acceptorId() + city() + country() + descriptor() + mcc() + state() + validated = true } - return hashCode } - override fun toString() = - "Merchant{acceptorId=$acceptorId, city=$city, country=$country, descriptor=$descriptor, mcc=$mcc, state=$state, additionalProperties=$additionalProperties}" + fun toBuilder() = Builder().from(this) companion object { @@ -3642,6 +3534,42 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Merchant && + this.acceptorId == other.acceptorId && + this.city == other.city && + this.country == other.country && + this.descriptor == other.descriptor && + this.mcc == other.mcc && + this.state == other.state && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + acceptorId, + city, + country, + descriptor, + mcc, + state, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Merchant{acceptorId=$acceptorId, city=$city, country=$country, descriptor=$descriptor, mcc=$mcc, state=$state, additionalProperties=$additionalProperties}" } class Network @@ -3730,8 +3658,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun entryMode(): EntryMode = entryMode.getRequired("entry_mode") fun terminal(): Terminal = terminal.getRequired("terminal") @@ -3754,32 +3680,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Pos && - this.entryMode == other.entryMode && - this.terminal == other.terminal && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - entryMode, - terminal, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Pos{entryMode=$entryMode, terminal=$terminal, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -3845,8 +3745,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Card status */ fun card(): Card = card.getRequired("card") @@ -3887,36 +3785,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is EntryMode && - this.card == other.card && - this.cardholder == other.cardholder && - this.pan == other.pan && - this.pinEntered == other.pinEntered && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - card, - cardholder, - pan, - pinEntered, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "EntryMode{card=$card, cardholder=$cardholder, pan=$pan, pinEntered=$pinEntered, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -4308,6 +4176,38 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is EntryMode && + this.card == other.card && + this.cardholder == other.cardholder && + this.pan == other.pan && + this.pinEntered == other.pinEntered && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + card, + cardholder, + pan, + pinEntered, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "EntryMode{card=$card, cardholder=$cardholder, pan=$pan, pinEntered=$pinEntered, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Terminal.Builder::class) @@ -4325,8 +4225,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** True if a clerk is present at the sale. */ fun attended(): Boolean = attended.getRequired("attended") @@ -4396,40 +4294,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Terminal && - this.attended == other.attended && - this.cardRetentionCapable == other.cardRetentionCapable && - this.onPremise == other.onPremise && - this.operator == other.operator && - this.pinCapability == other.pinCapability && - this.type == other.type && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attended, - cardRetentionCapable, - onPremise, - operator, - pinCapability, - type, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Terminal{attended=$attended, cardRetentionCapable=$cardRetentionCapable, onPremise=$onPremise, operator=$operator, pinCapability=$pinCapability, type=$type, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -4845,38 +4709,102 @@ private constructor( else -> Value._UNKNOWN } - fun known(): Known = - when (this) { - ADMINISTRATIVE -> Known.ADMINISTRATIVE - ATM -> Known.ATM - AUTHORIZATION -> Known.AUTHORIZATION - COUPON_MACHINE -> Known.COUPON_MACHINE - DIAL_TERMINAL -> Known.DIAL_TERMINAL - ECOMMERCE -> Known.ECOMMERCE - ECR -> Known.ECR - FUEL_MACHINE -> Known.FUEL_MACHINE - HOME_TERMINAL -> Known.HOME_TERMINAL - MICR -> Known.MICR - OFF_PREMISE -> Known.OFF_PREMISE - PAYMENT -> Known.PAYMENT - PDA -> Known.PDA - PHONE -> Known.PHONE - POINT -> Known.POINT - POS_TERMINAL -> Known.POS_TERMINAL - PUBLIC_UTILITY -> Known.PUBLIC_UTILITY - SELF_SERVICE -> Known.SELF_SERVICE - TELEVISION -> Known.TELEVISION - TELLER -> Known.TELLER - TRAVELERS_CHECK_MACHINE -> Known.TRAVELERS_CHECK_MACHINE - UNKNOWN -> Known.UNKNOWN - VENDING -> Known.VENDING - VOICE -> Known.VOICE - else -> throw LithicInvalidDataException("Unknown Type: $value") - } + fun known(): Known = + when (this) { + ADMINISTRATIVE -> Known.ADMINISTRATIVE + ATM -> Known.ATM + AUTHORIZATION -> Known.AUTHORIZATION + COUPON_MACHINE -> Known.COUPON_MACHINE + DIAL_TERMINAL -> Known.DIAL_TERMINAL + ECOMMERCE -> Known.ECOMMERCE + ECR -> Known.ECR + FUEL_MACHINE -> Known.FUEL_MACHINE + HOME_TERMINAL -> Known.HOME_TERMINAL + MICR -> Known.MICR + OFF_PREMISE -> Known.OFF_PREMISE + PAYMENT -> Known.PAYMENT + PDA -> Known.PDA + PHONE -> Known.PHONE + POINT -> Known.POINT + POS_TERMINAL -> Known.POS_TERMINAL + PUBLIC_UTILITY -> Known.PUBLIC_UTILITY + SELF_SERVICE -> Known.SELF_SERVICE + TELEVISION -> Known.TELEVISION + TELLER -> Known.TELLER + TRAVELERS_CHECK_MACHINE -> Known.TRAVELERS_CHECK_MACHINE + UNKNOWN -> Known.UNKNOWN + VENDING -> Known.VENDING + VOICE -> Known.VOICE + else -> throw LithicInvalidDataException("Unknown Type: $value") + } + + fun asString(): String = _value().asStringOrThrow() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Terminal && + this.attended == other.attended && + this.cardRetentionCapable == other.cardRetentionCapable && + this.onPremise == other.onPremise && + this.operator == other.operator && + this.pinCapability == other.pinCapability && + this.type == other.type && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attended, + cardRetentionCapable, + onPremise, + operator, + pinCapability, + type, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Terminal{attended=$attended, cardRetentionCapable=$cardRetentionCapable, onPremise=$onPremise, operator=$operator, pinCapability=$pinCapability, type=$type, additionalProperties=$additionalProperties}" + } - fun asString(): String = _value().asStringOrThrow() + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Pos && + this.entryMode == other.entryMode && + this.terminal == other.terminal && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + entryMode, + terminal, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "Pos{entryMode=$entryMode, terminal=$terminal, additionalProperties=$additionalProperties}" } class Result @@ -5112,8 +5040,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Source of the token */ fun walletType(): Optional = Optional.ofNullable(walletType.getNullable("wallet_type")) @@ -5134,26 +5060,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TokenInfo && - this.walletType == other.walletType && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(walletType, additionalProperties) - } - return hashCode - } - - override fun toString() = - "TokenInfo{walletType=$walletType, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -5277,6 +5183,28 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TokenInfo && + this.walletType == other.walletType && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(walletType, additionalProperties) + } + return hashCode + } + + override fun toString() = + "TokenInfo{walletType=$walletType, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = CardholderAuthentication.Builder::class) @@ -5296,8 +5224,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * 3-D Secure Protocol version. Possible enum values: * - `1`: 3-D Secure Protocol version 1.x applied to the transaction. @@ -5572,44 +5498,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CardholderAuthentication && - this._3dsVersion == other._3dsVersion && - this.acquirerExemption == other.acquirerExemption && - this.authenticationResult == other.authenticationResult && - this.decisionMadeBy == other.decisionMadeBy && - this.liabilityShift == other.liabilityShift && - this.threeDSAuthenticationToken == other.threeDSAuthenticationToken && - this.verificationAttempted == other.verificationAttempted && - this.verificationResult == other.verificationResult && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - _3dsVersion, - acquirerExemption, - authenticationResult, - decisionMadeBy, - liabilityShift, - threeDSAuthenticationToken, - verificationAttempted, - verificationResult, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CardholderAuthentication{_3dsVersion=$_3dsVersion, acquirerExemption=$acquirerExemption, authenticationResult=$authenticationResult, decisionMadeBy=$decisionMadeBy, liabilityShift=$liabilityShift, threeDSAuthenticationToken=$threeDSAuthenticationToken, verificationAttempted=$verificationAttempted, verificationResult=$verificationResult, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -6431,5 +6319,117 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CardholderAuthentication && + this._3dsVersion == other._3dsVersion && + this.acquirerExemption == other.acquirerExemption && + this.authenticationResult == other.authenticationResult && + this.decisionMadeBy == other.decisionMadeBy && + this.liabilityShift == other.liabilityShift && + this.threeDSAuthenticationToken == other.threeDSAuthenticationToken && + this.verificationAttempted == other.verificationAttempted && + this.verificationResult == other.verificationResult && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + _3dsVersion, + acquirerExemption, + authenticationResult, + decisionMadeBy, + liabilityShift, + threeDSAuthenticationToken, + verificationAttempted, + verificationResult, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CardholderAuthentication{_3dsVersion=$_3dsVersion, acquirerExemption=$acquirerExemption, authenticationResult=$authenticationResult, decisionMadeBy=$decisionMadeBy, liabilityShift=$liabilityShift, threeDSAuthenticationToken=$threeDSAuthenticationToken, verificationAttempted=$verificationAttempted, verificationResult=$verificationResult, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Transaction && + this.acquirerFee == other.acquirerFee && + this.acquirerReferenceNumber == other.acquirerReferenceNumber && + this.amount == other.amount && + this.amounts == other.amounts && + this.authorizationAmount == other.authorizationAmount && + this.authorizationCode == other.authorizationCode && + this.avs == other.avs && + this.cardToken == other.cardToken && + this.cardholderAuthentication == other.cardholderAuthentication && + this.created == other.created && + this.events == other.events && + this.merchant == other.merchant && + this.merchantAmount == other.merchantAmount && + this.merchantAuthorizationAmount == other.merchantAuthorizationAmount && + this.merchantCurrency == other.merchantCurrency && + this.network == other.network && + this.networkRiskScore == other.networkRiskScore && + this.pos == other.pos && + this.result == other.result && + this.settledAmount == other.settledAmount && + this.status == other.status && + this.token == other.token && + this.tokenInfo == other.tokenInfo && + this.updated == other.updated && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + acquirerFee, + acquirerReferenceNumber, + amount, + amounts, + authorizationAmount, + authorizationCode, + avs, + cardToken, + cardholderAuthentication, + created, + events, + merchant, + merchantAmount, + merchantAuthorizationAmount, + merchantCurrency, + network, + networkRiskScore, + pos, + result, + settledAmount, + status, + token, + tokenInfo, + updated, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Transaction{acquirerFee=$acquirerFee, acquirerReferenceNumber=$acquirerReferenceNumber, amount=$amount, amounts=$amounts, authorizationAmount=$authorizationAmount, authorizationCode=$authorizationCode, avs=$avs, cardToken=$cardToken, cardholderAuthentication=$cardholderAuthentication, created=$created, events=$events, merchant=$merchant, merchantAmount=$merchantAmount, merchantAuthorizationAmount=$merchantAuthorizationAmount, merchantCurrency=$merchantCurrency, network=$network, networkRiskScore=$networkRiskScore, pos=$pos, result=$result, settledAmount=$settledAmount, status=$status, token=$token, tokenInfo=$tokenInfo, updated=$updated, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationAdviceParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationAdviceParams.kt index 6fee41d40..6d34a3eb5 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationAdviceParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationAdviceParams.kt @@ -48,8 +48,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** The transaction token returned from the /v1/simulate/authorize response. */ @JsonProperty("token") fun token(): String? = token @@ -65,32 +63,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionSimulateAuthorizationAdviceBody && - this.token == other.token && - this.amount == other.amount && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - amount, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TransactionSimulateAuthorizationAdviceBody{token=$token, amount=$amount, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -144,6 +116,34 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionSimulateAuthorizationAdviceBody && + this.token == other.token && + this.amount == other.amount && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + amount, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TransactionSimulateAuthorizationAdviceBody{token=$token, amount=$amount, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationAdviceResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationAdviceResponse.kt index 18d61189b..08a425d7a 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationAdviceResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationAdviceResponse.kt @@ -26,8 +26,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Debugging request ID to share with Lithic Support team. */ fun debuggingRequestId(): Optional = Optional.ofNullable(debuggingRequestId.getNullable("debugging_request_id")) @@ -57,32 +55,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionSimulateAuthorizationAdviceResponse && - this.debuggingRequestId == other.debuggingRequestId && - this.token == other.token && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - debuggingRequestId, - token, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TransactionSimulateAuthorizationAdviceResponse{debuggingRequestId=$debuggingRequestId, token=$token, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -147,4 +119,32 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionSimulateAuthorizationAdviceResponse && + this.debuggingRequestId == other.debuggingRequestId && + this.token == other.token && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + debuggingRequestId, + token, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TransactionSimulateAuthorizationAdviceResponse{debuggingRequestId=$debuggingRequestId, token=$token, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationParams.kt index 3dd624794..ea2285294 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationParams.kt @@ -88,8 +88,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Amount (in cents) to authorize. For credit authorizations and financial credit * authorizations, any value entered will be converted into a negative amount in the @@ -157,46 +155,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionSimulateAuthorizationBody && - this.amount == other.amount && - this.descriptor == other.descriptor && - this.pan == other.pan && - this.mcc == other.mcc && - this.merchantAcceptorId == other.merchantAcceptorId && - this.merchantAmount == other.merchantAmount && - this.merchantCurrency == other.merchantCurrency && - this.partialApprovalCapable == other.partialApprovalCapable && - this.status == other.status && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - descriptor, - pan, - mcc, - merchantAcceptorId, - merchantAmount, - merchantCurrency, - partialApprovalCapable, - status, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TransactionSimulateAuthorizationBody{amount=$amount, descriptor=$descriptor, pan=$pan, mcc=$mcc, merchantAcceptorId=$merchantAcceptorId, merchantAmount=$merchantAmount, merchantCurrency=$merchantCurrency, partialApprovalCapable=$partialApprovalCapable, status=$status, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -335,6 +293,48 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionSimulateAuthorizationBody && + this.amount == other.amount && + this.descriptor == other.descriptor && + this.pan == other.pan && + this.mcc == other.mcc && + this.merchantAcceptorId == other.merchantAcceptorId && + this.merchantAmount == other.merchantAmount && + this.merchantCurrency == other.merchantCurrency && + this.partialApprovalCapable == other.partialApprovalCapable && + this.status == other.status && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + descriptor, + pan, + mcc, + merchantAcceptorId, + merchantAmount, + merchantCurrency, + partialApprovalCapable, + status, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TransactionSimulateAuthorizationBody{amount=$amount, descriptor=$descriptor, pan=$pan, mcc=$mcc, merchantAcceptorId=$merchantAcceptorId, merchantAmount=$merchantAmount, merchantCurrency=$merchantCurrency, partialApprovalCapable=$partialApprovalCapable, status=$status, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationResponse.kt index 0909b822d..0b34db5ed 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateAuthorizationResponse.kt @@ -26,8 +26,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Debugging request ID to share with Lithic Support team. */ fun debuggingRequestId(): Optional = Optional.ofNullable(debuggingRequestId.getNullable("debugging_request_id")) @@ -63,32 +61,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionSimulateAuthorizationResponse && - this.debuggingRequestId == other.debuggingRequestId && - this.token == other.token && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - debuggingRequestId, - token, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TransactionSimulateAuthorizationResponse{debuggingRequestId=$debuggingRequestId, token=$token, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -155,4 +127,32 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionSimulateAuthorizationResponse && + this.debuggingRequestId == other.debuggingRequestId && + this.token == other.token && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + debuggingRequestId, + token, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TransactionSimulateAuthorizationResponse{debuggingRequestId=$debuggingRequestId, token=$token, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingParams.kt index 1e2e0c655..689e07fdc 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingParams.kt @@ -49,8 +49,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** The transaction token returned from the /v1/simulate/authorize response. */ @JsonProperty("token") fun token(): String? = token @@ -70,32 +68,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionSimulateClearingBody && - this.token == other.token && - this.amount == other.amount && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - amount, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TransactionSimulateClearingBody{token=$token, amount=$amount, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -149,6 +121,34 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionSimulateClearingBody && + this.token == other.token && + this.amount == other.amount && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + amount, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TransactionSimulateClearingBody{token=$token, amount=$amount, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingResponse.kt index 4d5f09503..c2e6c0afe 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingResponse.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Debugging request ID to share with Lithic Support team. */ fun debuggingRequestId(): Optional = Optional.ofNullable(debuggingRequestId.getNullable("debugging_request_id")) @@ -49,26 +47,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionSimulateClearingResponse && - this.debuggingRequestId == other.debuggingRequestId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(debuggingRequestId, additionalProperties) - } - return hashCode - } - - override fun toString() = - "TransactionSimulateClearingResponse{debuggingRequestId=$debuggingRequestId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -118,4 +96,26 @@ private constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionSimulateClearingResponse && + this.debuggingRequestId == other.debuggingRequestId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(debuggingRequestId, additionalProperties) + } + return hashCode + } + + override fun toString() = + "TransactionSimulateClearingResponse{debuggingRequestId=$debuggingRequestId, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateCreditAuthorizationParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateCreditAuthorizationParams.kt index 631c7c57d..a234cba19 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateCreditAuthorizationParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateCreditAuthorizationParams.kt @@ -64,8 +64,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Amount (in cents). Any value entered will be converted into a negative amount in the * simulated transaction. For example, entering 100 in this field will appear as a -100 @@ -95,38 +93,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionSimulateCreditAuthorizationBody && - this.amount == other.amount && - this.descriptor == other.descriptor && - this.pan == other.pan && - this.mcc == other.mcc && - this.merchantAcceptorId == other.merchantAcceptorId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - descriptor, - pan, - mcc, - merchantAcceptorId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TransactionSimulateCreditAuthorizationBody{amount=$amount, descriptor=$descriptor, pan=$pan, mcc=$mcc, merchantAcceptorId=$merchantAcceptorId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -208,6 +174,40 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionSimulateCreditAuthorizationBody && + this.amount == other.amount && + this.descriptor == other.descriptor && + this.pan == other.pan && + this.mcc == other.mcc && + this.merchantAcceptorId == other.merchantAcceptorId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + descriptor, + pan, + mcc, + merchantAcceptorId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TransactionSimulateCreditAuthorizationBody{amount=$amount, descriptor=$descriptor, pan=$pan, mcc=$mcc, merchantAcceptorId=$merchantAcceptorId, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateCreditAuthorizationResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateCreditAuthorizationResponse.kt index 8ab65379c..2191df2ed 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateCreditAuthorizationResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateCreditAuthorizationResponse.kt @@ -26,8 +26,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Debugging request ID to share with Lithic Support team. */ fun debuggingRequestId(): Optional = Optional.ofNullable(debuggingRequestId.getNullable("debugging_request_id")) @@ -57,32 +55,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionSimulateCreditAuthorizationResponse && - this.debuggingRequestId == other.debuggingRequestId && - this.token == other.token && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - debuggingRequestId, - token, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TransactionSimulateCreditAuthorizationResponse{debuggingRequestId=$debuggingRequestId, token=$token, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -147,4 +119,32 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionSimulateCreditAuthorizationResponse && + this.debuggingRequestId == other.debuggingRequestId && + this.token == other.token && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + debuggingRequestId, + token, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TransactionSimulateCreditAuthorizationResponse{debuggingRequestId=$debuggingRequestId, token=$token, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnParams.kt index c11b21ecd..388d78b7a 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnParams.kt @@ -53,8 +53,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** Amount (in cents) to authorize. */ @JsonProperty("amount") fun amount(): Long? = amount @@ -70,34 +68,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionSimulateReturnBody && - this.amount == other.amount && - this.descriptor == other.descriptor && - this.pan == other.pan && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - descriptor, - pan, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TransactionSimulateReturnBody{amount=$amount, descriptor=$descriptor, pan=$pan, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -151,6 +121,36 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionSimulateReturnBody && + this.amount == other.amount && + this.descriptor == other.descriptor && + this.pan == other.pan && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + descriptor, + pan, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TransactionSimulateReturnBody{amount=$amount, descriptor=$descriptor, pan=$pan, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnResponse.kt index b46c2f40d..83b0c7e8a 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnResponse.kt @@ -26,8 +26,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Debugging request ID to share with Lithic Support team. */ fun debuggingRequestId(): Optional = Optional.ofNullable(debuggingRequestId.getNullable("debugging_request_id")) @@ -57,32 +55,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionSimulateReturnResponse && - this.debuggingRequestId == other.debuggingRequestId && - this.token == other.token && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - debuggingRequestId, - token, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TransactionSimulateReturnResponse{debuggingRequestId=$debuggingRequestId, token=$token, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -142,4 +114,32 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionSimulateReturnResponse && + this.debuggingRequestId == other.debuggingRequestId && + this.token == other.token && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + debuggingRequestId, + token, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TransactionSimulateReturnResponse{debuggingRequestId=$debuggingRequestId, token=$token, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnReversalParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnReversalParams.kt index 3a4f86395..29d5f3df2 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnReversalParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnReversalParams.kt @@ -40,8 +40,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** The transaction token returned from the /v1/simulate/authorize response. */ @JsonProperty("token") fun token(): String? = token @@ -51,26 +49,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionSimulateReturnReversalBody && - this.token == other.token && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(token, additionalProperties) - } - return hashCode - } - - override fun toString() = - "TransactionSimulateReturnReversalBody{token=$token, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -112,6 +90,28 @@ constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionSimulateReturnReversalBody && + this.token == other.token && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(token, additionalProperties) + } + return hashCode + } + + override fun toString() = + "TransactionSimulateReturnReversalBody{token=$token, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnReversalResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnReversalResponse.kt index 83349ff76..cf86dba13 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnReversalResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateReturnReversalResponse.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Debugging request ID to share with Lithic Support team. */ fun debuggingRequestId(): Optional = Optional.ofNullable(debuggingRequestId.getNullable("debugging_request_id")) @@ -49,26 +47,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionSimulateReturnReversalResponse && - this.debuggingRequestId == other.debuggingRequestId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(debuggingRequestId, additionalProperties) - } - return hashCode - } - - override fun toString() = - "TransactionSimulateReturnReversalResponse{debuggingRequestId=$debuggingRequestId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -118,4 +96,26 @@ private constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionSimulateReturnReversalResponse && + this.debuggingRequestId == other.debuggingRequestId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(debuggingRequestId, additionalProperties) + } + return hashCode + } + + override fun toString() = + "TransactionSimulateReturnReversalResponse{debuggingRequestId=$debuggingRequestId, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateVoidParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateVoidParams.kt index e60e7b7f7..0689e1e8f 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateVoidParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateVoidParams.kt @@ -58,8 +58,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** The transaction token returned from the /v1/simulate/authorize response. */ @JsonProperty("token") fun token(): String? = token @@ -82,34 +80,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionSimulateVoidBody && - this.token == other.token && - this.amount == other.amount && - this.type == other.type && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - amount, - type, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TransactionSimulateVoidBody{token=$token, amount=$amount, type=$type, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -169,6 +139,36 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionSimulateVoidBody && + this.token == other.token && + this.amount == other.amount && + this.type == other.type && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + amount, + type, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TransactionSimulateVoidBody{token=$token, amount=$amount, type=$type, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateVoidResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateVoidResponse.kt index a3fc5d43c..c8c3e6203 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateVoidResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateVoidResponse.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Debugging request ID to share with Lithic Support team. */ fun debuggingRequestId(): Optional = Optional.ofNullable(debuggingRequestId.getNullable("debugging_request_id")) @@ -49,26 +47,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransactionSimulateVoidResponse && - this.debuggingRequestId == other.debuggingRequestId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(debuggingRequestId, additionalProperties) - } - return hashCode - } - - override fun toString() = - "TransactionSimulateVoidResponse{debuggingRequestId=$debuggingRequestId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -117,4 +95,26 @@ private constructor( additionalProperties.toUnmodifiable() ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionSimulateVoidResponse && + this.debuggingRequestId == other.debuggingRequestId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(debuggingRequestId, additionalProperties) + } + return hashCode + } + + override fun toString() = + "TransactionSimulateVoidResponse{debuggingRequestId=$debuggingRequestId, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Transfer.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Transfer.kt index 90174a9f0..e48dac3ea 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Transfer.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Transfer.kt @@ -41,8 +41,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Status types: * - `TRANSFER` - Internal transfer of funds between financial accounts in your program. @@ -190,54 +188,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Transfer && - this.category == other.category && - this.created == other.created && - this.currency == other.currency && - this.descriptor == other.descriptor && - this.events == other.events && - this.fromBalance == other.fromBalance && - this.pendingAmount == other.pendingAmount && - this.result == other.result && - this.settledAmount == other.settledAmount && - this.status == other.status && - this.toBalance == other.toBalance && - this.token == other.token && - this.updated == other.updated && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - category, - created, - currency, - descriptor, - events, - fromBalance, - pendingAmount, - result, - settledAmount, - status, - toBalance, - token, - updated, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Transfer{category=$category, created=$created, currency=$currency, descriptor=$descriptor, events=$events, fromBalance=$fromBalance, pendingAmount=$pendingAmount, result=$result, settledAmount=$settledAmount, status=$status, toBalance=$toBalance, token=$token, updated=$updated, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -530,8 +480,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Amount of the financial event that has been settled in the currency's smallest unit * (e.g., cents). @@ -590,38 +538,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is FinancialEvent && - this.amount == other.amount && - this.created == other.created && - this.result == other.result && - this.token == other.token && - this.type == other.type && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - created, - result, - token, - type, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "FinancialEvent{amount=$amount, created=$created, result=$result, token=$token, type=$type, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1213,6 +1129,40 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is FinancialEvent && + this.amount == other.amount && + this.created == other.created && + this.result == other.result && + this.token == other.token && + this.type == other.type && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + created, + result, + token, + type, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "FinancialEvent{amount=$amount, created=$created, result=$result, token=$token, type=$type, additionalProperties=$additionalProperties}" } class Result @@ -1346,4 +1296,54 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Transfer && + this.category == other.category && + this.created == other.created && + this.currency == other.currency && + this.descriptor == other.descriptor && + this.events == other.events && + this.fromBalance == other.fromBalance && + this.pendingAmount == other.pendingAmount && + this.result == other.result && + this.settledAmount == other.settledAmount && + this.status == other.status && + this.toBalance == other.toBalance && + this.token == other.token && + this.updated == other.updated && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + category, + created, + currency, + descriptor, + events, + fromBalance, + pendingAmount, + result, + settledAmount, + status, + toBalance, + token, + updated, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Transfer{category=$category, created=$created, currency=$currency, descriptor=$descriptor, events=$events, fromBalance=$fromBalance, pendingAmount=$pendingAmount, result=$result, settledAmount=$settledAmount, status=$status, toBalance=$toBalance, token=$token, updated=$updated, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransferCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransferCreateParams.kt index 01411a653..4e084d452 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransferCreateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransferCreateParams.kt @@ -64,8 +64,6 @@ constructor( private val additionalProperties: Map, ) { - private var hashCode: Int = 0 - /** * Amount to be transferred in the currency’s smallest unit (e.g., cents for USD). This * should always be a positive value. @@ -99,38 +97,6 @@ constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TransferCreateBody && - this.amount == other.amount && - this.from == other.from && - this.to == other.to && - this.token == other.token && - this.memo == other.memo && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - amount, - from, - to, - token, - memo, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TransferCreateBody{amount=$amount, from=$from, to=$to, token=$token, memo=$memo, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -206,6 +172,40 @@ constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransferCreateBody && + this.amount == other.amount && + this.from == other.from && + this.to == other.to && + this.token == other.token && + this.memo == other.memo && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + amount, + from, + to, + token, + memo, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TransferCreateBody{amount=$amount, from=$from, to=$to, token=$token, memo=$memo, additionalProperties=$additionalProperties}" } fun _additionalQueryParams(): Map> = additionalQueryParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ApplyResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ApplyResponse.kt index ca0f22798..a1bd97c25 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ApplyResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ApplyResponse.kt @@ -44,8 +44,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun token(): String = token.getRequired("token") /** The state of the Auth Rule */ @@ -110,44 +108,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is V2ApplyResponse && - this.token == other.token && - this.state == other.state && - this.programLevel == other.programLevel && - this.cardTokens == other.cardTokens && - this.accountTokens == other.accountTokens && - this.type == other.type && - this.currentVersion == other.currentVersion && - this.draftVersion == other.draftVersion && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - state, - programLevel, - cardTokens, - accountTokens, - type, - currentVersion, - draftVersion, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "V2ApplyResponse{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -284,8 +244,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -312,32 +270,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CurrentVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -547,8 +479,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -566,26 +496,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -646,8 +556,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -681,34 +589,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1105,9 +985,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true } + + return other is CurrentVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = DraftVersion.Builder::class) @@ -1121,8 +1081,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -1149,32 +1107,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is DraftVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1384,8 +1316,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -1403,26 +1333,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1483,8 +1393,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -1518,34 +1426,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1942,9 +1822,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is DraftVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } class AuthRuleState @@ -2060,4 +2020,44 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is V2ApplyResponse && + this.token == other.token && + this.state == other.state && + this.programLevel == other.programLevel && + this.cardTokens == other.cardTokens && + this.accountTokens == other.accountTokens && + this.type == other.type && + this.currentVersion == other.currentVersion && + this.draftVersion == other.draftVersion && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + state, + programLevel, + cardTokens, + accountTokens, + type, + currentVersion, + draftVersion, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "V2ApplyResponse{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2CreateResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2CreateResponse.kt index 2a4283a22..4428f7882 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2CreateResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2CreateResponse.kt @@ -44,8 +44,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun token(): String = token.getRequired("token") /** The state of the Auth Rule */ @@ -110,44 +108,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is V2CreateResponse && - this.token == other.token && - this.state == other.state && - this.programLevel == other.programLevel && - this.cardTokens == other.cardTokens && - this.accountTokens == other.accountTokens && - this.type == other.type && - this.currentVersion == other.currentVersion && - this.draftVersion == other.draftVersion && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - state, - programLevel, - cardTokens, - accountTokens, - type, - currentVersion, - draftVersion, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "V2CreateResponse{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -284,8 +244,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -312,32 +270,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CurrentVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -547,8 +479,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -566,26 +496,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -646,8 +556,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -681,34 +589,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1105,9 +985,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true } + + return other is CurrentVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = DraftVersion.Builder::class) @@ -1121,8 +1081,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -1149,32 +1107,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is DraftVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1384,8 +1316,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -1403,26 +1333,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1483,8 +1393,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -1518,34 +1426,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1942,9 +1822,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is DraftVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } class AuthRuleState @@ -2060,4 +2020,44 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is V2CreateResponse && + this.token == other.token && + this.state == other.state && + this.programLevel == other.programLevel && + this.cardTokens == other.cardTokens && + this.accountTokens == other.accountTokens && + this.type == other.type && + this.currentVersion == other.currentVersion && + this.draftVersion == other.draftVersion && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + state, + programLevel, + cardTokens, + accountTokens, + type, + currentVersion, + draftVersion, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "V2CreateResponse{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2DraftResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2DraftResponse.kt index 416169090..de8355f29 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2DraftResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2DraftResponse.kt @@ -44,8 +44,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun token(): String = token.getRequired("token") /** The state of the Auth Rule */ @@ -110,44 +108,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is V2DraftResponse && - this.token == other.token && - this.state == other.state && - this.programLevel == other.programLevel && - this.cardTokens == other.cardTokens && - this.accountTokens == other.accountTokens && - this.type == other.type && - this.currentVersion == other.currentVersion && - this.draftVersion == other.draftVersion && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - state, - programLevel, - cardTokens, - accountTokens, - type, - currentVersion, - draftVersion, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "V2DraftResponse{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -284,8 +244,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -312,32 +270,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CurrentVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -547,8 +479,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -566,26 +496,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -646,8 +556,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -681,34 +589,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1105,9 +985,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true } + + return other is CurrentVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = DraftVersion.Builder::class) @@ -1121,8 +1081,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -1149,32 +1107,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is DraftVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1384,8 +1316,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -1403,26 +1333,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1483,8 +1393,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -1518,34 +1426,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1942,9 +1822,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is DraftVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } class AuthRuleState @@ -2060,4 +2020,44 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is V2DraftResponse && + this.token == other.token && + this.state == other.state && + this.programLevel == other.programLevel && + this.cardTokens == other.cardTokens && + this.accountTokens == other.accountTokens && + this.type == other.type && + this.currentVersion == other.currentVersion && + this.draftVersion == other.draftVersion && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + state, + programLevel, + cardTokens, + accountTokens, + type, + currentVersion, + draftVersion, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "V2DraftResponse{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ListResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ListResponse.kt index 558f76030..29fe3c04f 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ListResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ListResponse.kt @@ -44,8 +44,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun token(): String = token.getRequired("token") /** The state of the Auth Rule */ @@ -110,44 +108,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is V2ListResponse && - this.token == other.token && - this.state == other.state && - this.programLevel == other.programLevel && - this.cardTokens == other.cardTokens && - this.accountTokens == other.accountTokens && - this.type == other.type && - this.currentVersion == other.currentVersion && - this.draftVersion == other.draftVersion && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - state, - programLevel, - cardTokens, - accountTokens, - type, - currentVersion, - draftVersion, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "V2ListResponse{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -284,8 +244,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -312,32 +270,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CurrentVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -547,8 +479,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -566,26 +496,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -646,8 +556,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -681,34 +589,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1105,9 +985,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true } + + return other is CurrentVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = DraftVersion.Builder::class) @@ -1121,8 +1081,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -1149,32 +1107,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is DraftVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1384,8 +1316,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -1403,26 +1333,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1483,8 +1393,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -1518,34 +1426,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1942,9 +1822,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is DraftVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } class AuthRuleState @@ -2060,4 +2020,44 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is V2ListResponse && + this.token == other.token && + this.state == other.state && + this.programLevel == other.programLevel && + this.cardTokens == other.cardTokens && + this.accountTokens == other.accountTokens && + this.type == other.type && + this.currentVersion == other.currentVersion && + this.draftVersion == other.draftVersion && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + state, + programLevel, + cardTokens, + accountTokens, + type, + currentVersion, + draftVersion, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "V2ListResponse{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2PromoteResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2PromoteResponse.kt index 4be372f91..af0df5560 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2PromoteResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2PromoteResponse.kt @@ -44,8 +44,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun token(): String = token.getRequired("token") /** The state of the Auth Rule */ @@ -110,44 +108,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is V2PromoteResponse && - this.token == other.token && - this.state == other.state && - this.programLevel == other.programLevel && - this.cardTokens == other.cardTokens && - this.accountTokens == other.accountTokens && - this.type == other.type && - this.currentVersion == other.currentVersion && - this.draftVersion == other.draftVersion && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - state, - programLevel, - cardTokens, - accountTokens, - type, - currentVersion, - draftVersion, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "V2PromoteResponse{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -284,8 +244,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -312,32 +270,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CurrentVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -547,8 +479,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -566,26 +496,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -646,8 +556,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -681,34 +589,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1105,9 +985,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true } + + return other is CurrentVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = DraftVersion.Builder::class) @@ -1121,8 +1081,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -1149,32 +1107,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is DraftVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1384,8 +1316,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -1403,26 +1333,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1483,8 +1393,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -1518,34 +1426,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1942,9 +1822,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is DraftVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } class AuthRuleState @@ -2060,4 +2020,44 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is V2PromoteResponse && + this.token == other.token && + this.state == other.state && + this.programLevel == other.programLevel && + this.cardTokens == other.cardTokens && + this.accountTokens == other.accountTokens && + this.type == other.type && + this.currentVersion == other.currentVersion && + this.draftVersion == other.draftVersion && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + state, + programLevel, + cardTokens, + accountTokens, + type, + currentVersion, + draftVersion, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "V2PromoteResponse{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ReportResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ReportResponse.kt index ff8faeffe..a43599b62 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ReportResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ReportResponse.kt @@ -25,8 +25,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun reportToken(): Optional = Optional.ofNullable(reportToken.getNullable("report_token")) @@ -45,26 +43,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is V2ReportResponse && - this.reportToken == other.reportToken && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(reportToken, additionalProperties) - } - return hashCode - } - - override fun toString() = - "V2ReportResponse{reportToken=$reportToken, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -104,4 +82,26 @@ private constructor( fun build(): V2ReportResponse = V2ReportResponse(reportToken, additionalProperties.toUnmodifiable()) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is V2ReportResponse && + this.reportToken == other.reportToken && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(reportToken, additionalProperties) + } + return hashCode + } + + override fun toString() = + "V2ReportResponse{reportToken=$reportToken, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2RetrieveResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2RetrieveResponse.kt index 0a075aee6..56aa6f1a4 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2RetrieveResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2RetrieveResponse.kt @@ -44,8 +44,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun token(): String = token.getRequired("token") /** The state of the Auth Rule */ @@ -110,44 +108,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is V2RetrieveResponse && - this.token == other.token && - this.state == other.state && - this.programLevel == other.programLevel && - this.cardTokens == other.cardTokens && - this.accountTokens == other.accountTokens && - this.type == other.type && - this.currentVersion == other.currentVersion && - this.draftVersion == other.draftVersion && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - state, - programLevel, - cardTokens, - accountTokens, - type, - currentVersion, - draftVersion, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "V2RetrieveResponse{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -284,8 +244,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -312,32 +270,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CurrentVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -547,8 +479,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -566,26 +496,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -646,8 +556,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -681,34 +589,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1105,9 +985,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true } + + return other is CurrentVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = DraftVersion.Builder::class) @@ -1121,8 +1081,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -1149,32 +1107,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is DraftVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1384,8 +1316,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -1403,26 +1333,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1483,8 +1393,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -1518,34 +1426,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1942,9 +1822,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is DraftVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } class AuthRuleState @@ -2060,4 +2020,44 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is V2RetrieveResponse && + this.token == other.token && + this.state == other.state && + this.programLevel == other.programLevel && + this.cardTokens == other.cardTokens && + this.accountTokens == other.accountTokens && + this.type == other.type && + this.currentVersion == other.currentVersion && + this.draftVersion == other.draftVersion && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + state, + programLevel, + cardTokens, + accountTokens, + type, + currentVersion, + draftVersion, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "V2RetrieveResponse{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2UpdateResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2UpdateResponse.kt index 7b7d20445..d8df81219 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2UpdateResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2UpdateResponse.kt @@ -44,8 +44,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun token(): String = token.getRequired("token") /** The state of the Auth Rule */ @@ -110,44 +108,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is V2UpdateResponse && - this.token == other.token && - this.state == other.state && - this.programLevel == other.programLevel && - this.cardTokens == other.cardTokens && - this.accountTokens == other.accountTokens && - this.type == other.type && - this.currentVersion == other.currentVersion && - this.draftVersion == other.draftVersion && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - token, - state, - programLevel, - cardTokens, - accountTokens, - type, - currentVersion, - draftVersion, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "V2UpdateResponse{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -284,8 +244,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -312,32 +270,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CurrentVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -547,8 +479,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -566,26 +496,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -646,8 +556,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -681,34 +589,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1105,9 +985,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode + } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true } + + return other is CurrentVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CurrentVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = DraftVersion.Builder::class) @@ -1121,8 +1081,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Parameters for the current version of the Auth Rule */ fun parameters(): AuthRuleParameters = parameters.getRequired("parameters") @@ -1149,32 +1107,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is DraftVersion && - this.parameters == other.parameters && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - parameters, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1384,8 +1316,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun conditions(): List = conditions.getRequired("conditions") @JsonProperty("conditions") @ExcludeMissing fun _conditions() = conditions @@ -1403,26 +1333,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionalBlockParameters && - this.conditions == other.conditions && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(conditions, additionalProperties) - } - return hashCode - } - - override fun toString() = - "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1483,8 +1393,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The attribute to target */ fun attribute(): Optional = Optional.ofNullable(attribute.getNullable("attribute")) @@ -1518,34 +1426,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Condition && - this.attribute == other.attribute && - this.operation == other.operation && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - attribute, - operation, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1942,9 +1822,89 @@ private constructor( } } } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Condition && + this.attribute == other.attribute && + this.operation == other.operation && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + attribute, + operation, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Condition{attribute=$attribute, operation=$operation, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConditionalBlockParameters && + this.conditions == other.conditions && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(conditions, additionalProperties) + } + return hashCode } + + override fun toString() = + "ConditionalBlockParameters{conditions=$conditions, additionalProperties=$additionalProperties}" + } + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is DraftVersion && + this.parameters == other.parameters && + this.version == other.version && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + parameters, + version, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "DraftVersion{parameters=$parameters, version=$version, additionalProperties=$additionalProperties}" } class AuthRuleState @@ -2060,4 +2020,44 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is V2UpdateResponse && + this.token == other.token && + this.state == other.state && + this.programLevel == other.programLevel && + this.cardTokens == other.cardTokens && + this.accountTokens == other.accountTokens && + this.type == other.type && + this.currentVersion == other.currentVersion && + this.draftVersion == other.draftVersion && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + token, + state, + programLevel, + cardTokens, + accountTokens, + type, + currentVersion, + draftVersion, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "V2UpdateResponse{token=$token, state=$state, programLevel=$programLevel, cardTokens=$cardTokens, accountTokens=$accountTokens, type=$type, currentVersion=$currentVersion, draftVersion=$draftVersion, additionalProperties=$additionalProperties}" } diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/VelocityLimitParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/VelocityLimitParams.kt index 9b319763b..f66ff0880 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/VelocityLimitParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/VelocityLimitParams.kt @@ -41,8 +41,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun scope(): Scope = scope.getRequired("scope") fun period(): Period = period.getRequired("period") @@ -101,38 +99,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is VelocityLimitParams && - this.scope == other.scope && - this.period == other.period && - this.filters == other.filters && - this.limitAmount == other.limitAmount && - this.limitCount == other.limitCount && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - scope, - period, - filters, - limitAmount, - limitCount, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "VelocityLimitParams{scope=$scope, period=$period, filters=$filters, limitAmount=$limitAmount, limitCount=$limitCount, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -245,8 +211,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** * Merchant Category Codes to include in the velocity calculation. Transactions not matching * this MCC will not be included in the calculated velocity. @@ -289,32 +253,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Filters && - this.includeMccs == other.includeMccs && - this.includeCountries == other.includeCountries && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - includeMccs, - includeCountries, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Filters{includeMccs=$includeMccs, includeCountries=$includeCountries, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -387,6 +325,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Filters && + this.includeMccs == other.includeMccs && + this.includeCountries == other.includeCountries && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + includeMccs, + includeCountries, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Filters{includeMccs=$includeMccs, includeCountries=$includeCountries, additionalProperties=$additionalProperties}" } @JsonDeserialize(using = Period.Deserializer::class) @@ -576,4 +542,38 @@ private constructor( fun asString(): String = _value().asStringOrThrow() } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is VelocityLimitParams && + this.scope == other.scope && + this.period == other.period && + this.filters == other.filters && + this.limitAmount == other.limitAmount && + this.limitCount == other.limitCount && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + scope, + period, + filters, + limitAmount, + limitCount, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "VelocityLimitParams{scope=$scope, period=$period, filters=$filters, limitAmount=$limitAmount, limitCount=$limitCount, additionalProperties=$additionalProperties}" } From de9012087e99f83f68ccc689b5380b28d046f2fa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 2 Oct 2024 19:24:29 +0000 Subject: [PATCH 2/3] fix(client): escape keywords reserved in java, but not in kotlin, for the java sdk (#323) --- .../models/AuthRuleMigrateV1ToV2Response.kt | 52 ++++++------- .../api/models/AuthRuleV2CreateParams.kt | 78 +++++++++---------- .../api/models/AuthRuleV2DraftParams.kt | 26 +++---- .../com/lithic/api/models/V2ApplyResponse.kt | 52 ++++++------- .../com/lithic/api/models/V2CreateResponse.kt | 52 ++++++------- .../com/lithic/api/models/V2DraftResponse.kt | 52 ++++++------- .../com/lithic/api/models/V2ListResponse.kt | 52 ++++++------- .../lithic/api/models/V2PromoteResponse.kt | 52 ++++++------- .../lithic/api/models/V2RetrieveResponse.kt | 52 ++++++------- .../com/lithic/api/models/V2UpdateResponse.kt | 52 ++++++------- .../lithic/api/models/VelocityLimitParams.kt | 26 +++---- 11 files changed, 273 insertions(+), 273 deletions(-) diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleMigrateV1ToV2Response.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleMigrateV1ToV2Response.kt index 83ab158eb..f0a59499a 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleMigrateV1ToV2Response.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleMigrateV1ToV2Response.kt @@ -852,7 +852,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -862,19 +862,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -883,7 +883,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -891,7 +891,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -905,14 +905,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -920,7 +920,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -931,7 +931,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -941,7 +941,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -958,7 +958,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -977,7 +977,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") @@ -1689,7 +1689,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -1699,19 +1699,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -1720,7 +1720,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -1728,7 +1728,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -1742,14 +1742,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -1757,7 +1757,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -1768,7 +1768,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -1778,7 +1778,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -1795,7 +1795,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -1814,7 +1814,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2CreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2CreateParams.kt index 793fc78f3..388140f67 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2CreateParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2CreateParams.kt @@ -973,7 +973,7 @@ constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -983,19 +983,19 @@ constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -1004,7 +1004,7 @@ constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -1012,7 +1012,7 @@ constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -1026,14 +1026,14 @@ constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -1041,7 +1041,7 @@ constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -1052,7 +1052,7 @@ constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -1062,7 +1062,7 @@ constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -1079,7 +1079,7 @@ constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -1098,7 +1098,7 @@ constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") @@ -1851,7 +1851,7 @@ constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -1861,19 +1861,19 @@ constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -1882,7 +1882,7 @@ constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -1890,7 +1890,7 @@ constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -1904,14 +1904,14 @@ constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -1919,7 +1919,7 @@ constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -1930,7 +1930,7 @@ constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -1940,7 +1940,7 @@ constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -1957,7 +1957,7 @@ constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -1976,7 +1976,7 @@ constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") @@ -2729,7 +2729,7 @@ constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -2739,19 +2739,19 @@ constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -2760,7 +2760,7 @@ constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -2768,7 +2768,7 @@ constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -2782,14 +2782,14 @@ constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -2797,7 +2797,7 @@ constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -2808,7 +2808,7 @@ constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -2818,7 +2818,7 @@ constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -2835,7 +2835,7 @@ constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -2854,7 +2854,7 @@ constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2DraftParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2DraftParams.kt index b2f2386ee..6ffbf0397 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2DraftParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleV2DraftParams.kt @@ -783,7 +783,7 @@ constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -793,19 +793,19 @@ constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -814,7 +814,7 @@ constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -822,7 +822,7 @@ constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -836,14 +836,14 @@ constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -851,7 +851,7 @@ constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -862,7 +862,7 @@ constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) } @@ -871,7 +871,7 @@ constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -888,7 +888,7 @@ constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -907,7 +907,7 @@ constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ApplyResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ApplyResponse.kt index a1bd97c25..0dede2068 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ApplyResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ApplyResponse.kt @@ -852,7 +852,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -862,19 +862,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -883,7 +883,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -891,7 +891,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -905,14 +905,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -920,7 +920,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -931,7 +931,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -941,7 +941,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -958,7 +958,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -977,7 +977,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") @@ -1689,7 +1689,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -1699,19 +1699,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -1720,7 +1720,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -1728,7 +1728,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -1742,14 +1742,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -1757,7 +1757,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -1768,7 +1768,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -1778,7 +1778,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -1795,7 +1795,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -1814,7 +1814,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2CreateResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2CreateResponse.kt index 4428f7882..2556e0250 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2CreateResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2CreateResponse.kt @@ -852,7 +852,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -862,19 +862,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -883,7 +883,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -891,7 +891,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -905,14 +905,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -920,7 +920,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -931,7 +931,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -941,7 +941,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -958,7 +958,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -977,7 +977,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") @@ -1689,7 +1689,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -1699,19 +1699,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -1720,7 +1720,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -1728,7 +1728,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -1742,14 +1742,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -1757,7 +1757,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -1768,7 +1768,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -1778,7 +1778,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -1795,7 +1795,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -1814,7 +1814,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2DraftResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2DraftResponse.kt index de8355f29..db6ad803d 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2DraftResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2DraftResponse.kt @@ -852,7 +852,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -862,19 +862,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -883,7 +883,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -891,7 +891,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -905,14 +905,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -920,7 +920,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -931,7 +931,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -941,7 +941,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -958,7 +958,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -977,7 +977,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") @@ -1689,7 +1689,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -1699,19 +1699,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -1720,7 +1720,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -1728,7 +1728,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -1742,14 +1742,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -1757,7 +1757,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -1768,7 +1768,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -1778,7 +1778,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -1795,7 +1795,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -1814,7 +1814,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ListResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ListResponse.kt index 29fe3c04f..46cc8072c 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ListResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2ListResponse.kt @@ -852,7 +852,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -862,19 +862,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -883,7 +883,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -891,7 +891,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -905,14 +905,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -920,7 +920,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -931,7 +931,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -941,7 +941,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -958,7 +958,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -977,7 +977,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") @@ -1689,7 +1689,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -1699,19 +1699,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -1720,7 +1720,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -1728,7 +1728,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -1742,14 +1742,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -1757,7 +1757,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -1768,7 +1768,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -1778,7 +1778,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -1795,7 +1795,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -1814,7 +1814,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2PromoteResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2PromoteResponse.kt index af0df5560..e5336676f 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2PromoteResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2PromoteResponse.kt @@ -852,7 +852,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -862,19 +862,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -883,7 +883,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -891,7 +891,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -905,14 +905,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -920,7 +920,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -931,7 +931,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -941,7 +941,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -958,7 +958,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -977,7 +977,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") @@ -1689,7 +1689,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -1699,19 +1699,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -1720,7 +1720,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -1728,7 +1728,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -1742,14 +1742,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -1757,7 +1757,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -1768,7 +1768,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -1778,7 +1778,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -1795,7 +1795,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -1814,7 +1814,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2RetrieveResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2RetrieveResponse.kt index 56aa6f1a4..2386f0215 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2RetrieveResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2RetrieveResponse.kt @@ -852,7 +852,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -862,19 +862,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -883,7 +883,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -891,7 +891,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -905,14 +905,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -920,7 +920,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -931,7 +931,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -941,7 +941,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -958,7 +958,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -977,7 +977,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") @@ -1689,7 +1689,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -1699,19 +1699,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -1720,7 +1720,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -1728,7 +1728,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -1742,14 +1742,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -1757,7 +1757,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -1768,7 +1768,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -1778,7 +1778,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -1795,7 +1795,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -1814,7 +1814,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2UpdateResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2UpdateResponse.kt index d8df81219..15a2b0b43 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2UpdateResponse.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/V2UpdateResponse.kt @@ -852,7 +852,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -862,19 +862,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -883,7 +883,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -891,7 +891,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -905,14 +905,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -920,7 +920,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -931,7 +931,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -941,7 +941,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -958,7 +958,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -977,7 +977,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") @@ -1689,7 +1689,7 @@ private constructor( class Value private constructor( private val string: String? = null, - private val double: Double? = null, + private val double_: Double? = null, private val strings: List? = null, private val _json: JsonValue? = null, ) { @@ -1699,19 +1699,19 @@ private constructor( /** A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` */ fun string(): Optional = Optional.ofNullable(string) /** A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN` */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */ fun strings(): Optional> = Optional.ofNullable(strings) fun isString(): Boolean = string != null - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isStrings(): Boolean = strings != null fun asString(): String = string.getOrThrow("string") - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asStrings(): List = strings.getOrThrow("strings") @@ -1720,7 +1720,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { string != null -> visitor.visitString(string) - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) strings != null -> visitor.visitStrings(strings) else -> visitor.unknown(_json) } @@ -1728,7 +1728,7 @@ private constructor( fun validate(): Value = apply { if (!validated) { - if (string == null && double == null && strings == null) { + if (string == null && double_ == null && strings == null) { throw LithicInvalidDataException("Unknown Value: $_json") } validated = true @@ -1742,14 +1742,14 @@ private constructor( return other is Value && this.string == other.string && - this.double == other.double && + this.double_ == other.double_ && this.strings == other.strings } override fun hashCode(): Int { return Objects.hash( string, - double, + double_, strings, ) } @@ -1757,7 +1757,7 @@ private constructor( override fun toString(): String { return when { string != null -> "Value{string=$string}" - double != null -> "Value{double=$double}" + double_ != null -> "Value{double_=$double_}" strings != null -> "Value{strings=$strings}" _json != null -> "Value{_unknown=$_json}" else -> throw IllegalStateException("Invalid Value") @@ -1768,7 +1768,7 @@ private constructor( @JvmStatic fun ofString(string: String) = Value(string = string) - @JvmStatic fun ofDouble(double: Double) = Value(double = double) + @JvmStatic fun ofDouble(double_: Double) = Value(double_ = double_) @JvmStatic fun ofStrings(strings: List) = Value(strings = strings) @@ -1778,7 +1778,7 @@ private constructor( fun visitString(string: String): T - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitStrings(strings: List): T @@ -1795,7 +1795,7 @@ private constructor( return Value(string = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { - return Value(double = it, _json = json) + return Value(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef>())?.let { return Value(strings = it, _json = json) @@ -1814,7 +1814,7 @@ private constructor( ) { when { value.string != null -> generator.writeObject(value.string) - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.strings != null -> generator.writeObject(value.strings) value._json != null -> generator.writeObject(value._json) else -> throw IllegalStateException("Invalid Value") diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/VelocityLimitParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/VelocityLimitParams.kt index f66ff0880..6348fabe0 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/VelocityLimitParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/VelocityLimitParams.kt @@ -359,7 +359,7 @@ private constructor( @JsonSerialize(using = Period.Serializer::class) class Period private constructor( - private val double: Double? = null, + private val double_: Double? = null, private val velocityLimitParamsPeriodWindow: VelocityLimitParamsPeriodWindow? = null, private val _json: JsonValue? = null, ) { @@ -367,7 +367,7 @@ private constructor( private var validated: Boolean = false /** The size of the trailing window to calculate Spend Velocity over in seconds. */ - fun double(): Optional = Optional.ofNullable(double) + fun double_(): Optional = Optional.ofNullable(double_) /** * The window of time to calculate Spend Velocity over. * - `DAY`: Velocity over the current day since midnight Eastern Time. @@ -377,11 +377,11 @@ private constructor( fun velocityLimitParamsPeriodWindow(): Optional = Optional.ofNullable(velocityLimitParamsPeriodWindow) - fun isDouble(): Boolean = double != null + fun isDouble(): Boolean = double_ != null fun isVelocityLimitParamsPeriodWindow(): Boolean = velocityLimitParamsPeriodWindow != null - fun asDouble(): Double = double.getOrThrow("double") + fun asDouble(): Double = double_.getOrThrow("double_") fun asVelocityLimitParamsPeriodWindow(): VelocityLimitParamsPeriodWindow = velocityLimitParamsPeriodWindow.getOrThrow("velocityLimitParamsPeriodWindow") @@ -390,7 +390,7 @@ private constructor( fun accept(visitor: Visitor): T { return when { - double != null -> visitor.visitDouble(double) + double_ != null -> visitor.visitDouble(double_) velocityLimitParamsPeriodWindow != null -> visitor.visitVelocityLimitParamsPeriodWindow(velocityLimitParamsPeriodWindow) else -> visitor.unknown(_json) @@ -399,7 +399,7 @@ private constructor( fun validate(): Period = apply { if (!validated) { - if (double == null && velocityLimitParamsPeriodWindow == null) { + if (double_ == null && velocityLimitParamsPeriodWindow == null) { throw LithicInvalidDataException("Unknown Period: $_json") } validated = true @@ -412,17 +412,17 @@ private constructor( } return other is Period && - this.double == other.double && + this.double_ == other.double_ && this.velocityLimitParamsPeriodWindow == other.velocityLimitParamsPeriodWindow } override fun hashCode(): Int { - return Objects.hash(double, velocityLimitParamsPeriodWindow) + return Objects.hash(double_, velocityLimitParamsPeriodWindow) } override fun toString(): String { return when { - double != null -> "Period{double=$double}" + double_ != null -> "Period{double_=$double_}" velocityLimitParamsPeriodWindow != null -> "Period{velocityLimitParamsPeriodWindow=$velocityLimitParamsPeriodWindow}" _json != null -> "Period{_unknown=$_json}" @@ -432,7 +432,7 @@ private constructor( companion object { - @JvmStatic fun ofDouble(double: Double) = Period(double = double) + @JvmStatic fun ofDouble(double_: Double) = Period(double_ = double_) @JvmStatic fun ofVelocityLimitParamsPeriodWindow( @@ -442,7 +442,7 @@ private constructor( interface Visitor { - fun visitDouble(double: Double): T + fun visitDouble(double_: Double): T fun visitVelocityLimitParamsPeriodWindow( velocityLimitParamsPeriodWindow: VelocityLimitParamsPeriodWindow @@ -458,7 +458,7 @@ private constructor( override fun ObjectCodec.deserialize(node: JsonNode): Period { val json = JsonValue.fromJsonNode(node) tryDeserialize(node, jacksonTypeRef())?.let { - return Period(double = it, _json = json) + return Period(double_ = it, _json = json) } tryDeserialize(node, jacksonTypeRef())?.let { return Period(velocityLimitParamsPeriodWindow = it, _json = json) @@ -476,7 +476,7 @@ private constructor( provider: SerializerProvider ) { when { - value.double != null -> generator.writeObject(value.double) + value.double_ != null -> generator.writeObject(value.double_) value.velocityLimitParamsPeriodWindow != null -> generator.writeObject(value.velocityLimitParamsPeriodWindow) value._json != null -> generator.writeObject(value._json) From a4d1bbe3457f182df70d214767a2be01ea30541b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 2 Oct 2024 19:24:50 +0000 Subject: [PATCH 3/3] release: 0.64.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ README.md | 6 +++--- build.gradle.kts | 2 +- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 4c56f2a48..c4eb5660c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.64.0" + ".": "0.64.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index eaa55dc0d..7b320acb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.64.1 (2024-10-02) + +Full Changelog: [v0.64.0...v0.64.1](https://github.com/lithic-com/lithic-java/compare/v0.64.0...v0.64.1) + +### Bug Fixes + +* **client:** escape keywords reserved in java, but not in kotlin, for the java sdk ([#323](https://github.com/lithic-com/lithic-java/issues/323)) ([de90120](https://github.com/lithic-com/lithic-java/commit/de9012087e99f83f68ccc689b5380b28d046f2fa)) + + +### Styles + +* **client:** move equals, hashCode, and toString to the bottom of entity files ([#321](https://github.com/lithic-com/lithic-java/issues/321)) ([88d052f](https://github.com/lithic-com/lithic-java/commit/88d052f82390ba6540c971952f4def79fef78528)) + ## 0.64.0 (2024-10-01) Full Changelog: [v0.63.0...v0.64.0](https://github.com/lithic-com/lithic-java/compare/v0.63.0...v0.64.0) diff --git a/README.md b/README.md index 4820935e8..42c40f210 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ -[![Maven Central](https://img.shields.io/maven-central/v/com.lithic.api/lithic-java)](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.64.0) +[![Maven Central](https://img.shields.io/maven-central/v/com.lithic.api/lithic-java)](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.64.1) @@ -25,7 +25,7 @@ The REST API documentation can be foundĀ on [docs.lithic.com](https://docs.lithi ```kotlin -implementation("com.lithic.api:lithic-java:0.64.0") +implementation("com.lithic.api:lithic-java:0.64.1") ``` #### Maven @@ -34,7 +34,7 @@ implementation("com.lithic.api:lithic-java:0.64.0") com.lithic.api lithic-java - 0.64.0 + 0.64.1 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 0b7cd442b..f1b84e1a3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ plugins { allprojects { group = "com.lithic.api" - version = "0.64.0" // x-release-please-version + version = "0.64.1" // x-release-please-version } nexusPublishing {